<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>syun77</author_name>
  <author_url>https://blog.hatena.ne.jp/syun77/</author_url>
  <blog_title>2dgames.jp</blog_title>
  <blog_url>https://2dgames.jp/</blog_url>
  <categories>
    <anon>雑記</anon>
  </categories>
  <description>UIの色を決めるときにはデザイン的な要素（かっこいい、わかりやすいなど）が重要ですが、それとは別の軸として「コントラスト比」もまた重要であるということを知ったので、それについてのメモ書きとなります。 コントラスト比とは コントラスト比とは明るい部分と暗い部分の比率で、計算には「輝度」というパラメータを使用します。 📌コントラスト比の計算式 コントラスト比＝(L1 + 0.05) / (L2 + 0.05) ( L1: 色の明るい部分の相対輝度、L2: 暗い部分の相対輝度 ) そして基本的にはコントラスト比が高いほど、エッジが鮮明になり「見やすい」ものとなります。 例えば以下は、イラストをPho…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2F2dgames.jp%2Fentry%2Fui-contrast%2F&quot; title=&quot;【雑記】わかりやすいUIのコントラスト比の決め方 - 2dgames.jp&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url>https://cdn-ak.f.st-hatena.com/images/fotolife/s/syun77/20250816/20250816151024.png</image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2024-06-08 12:56:40</published>
  <title>【雑記】わかりやすいUIのコントラスト比の決め方</title>
  <type>rich</type>
  <url>https://2dgames.jp/entry/ui-contrast/</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
