#F0DF7A#F0DF7A

#F0DF7A is a very light, vivid yellow. Relative luminance 0.727; OKLCH L 89.7% C 0.124 H 99.9°. Best body text is #000000 at 15.54:1 contrast (WCAG AA passes).

Color values

HEX#F0DF7A
RGBrgb(240, 223, 122)
HSLhsl(51, 80%, 71%)
HSVhsv(51, 49%, 94%)
CMYKcmyk(0%, 7.1%, 49.2%, 5.9%)
CIE-LABlab(88.31, -7.20, 51.20)
CIE-LCHlch(88.31, 51.70, 98.01°)
OKLaboklab(89.67% -0.0213 0.1218)
OKLCHoklch(89.67% 0.124 99.9)
XYZxyz(65.8376, 72.7081, 28.9746)
Luminance0.7271 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF7A #7A8BF0
analogous
#F0A47A #F0DF7A #C6F07A
triadic
#F0DF7A #7AF0DF #DF7AF0
tetradic
#F0DF7A #7AF0A4 #7A8BF0 #F07AC6
square
#F0DF7A #7AF0A4 #7A8BF0 #F07AC6
split-complementary
#F0DF7A #7AC6F0 #A47AF0
monochromatic
#D7BC18 #EAD243 #F0DF7A #F6ECB1 #FCF8E4

Accessibility & contrast

On white

1.35
#F0DF7A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.54
#F0DF7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF7A
15.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF7A#FFFFFF#000000##000000
##F0DF7A1.001.3515.5415.54
#FFFFFF1.351.0021.0021.00
#00000015.5421.001.001.00
##00000015.5421.001.001.00

Color blindness preview

Protanopia (red-blind)
#F0DA71
Deuteranopia (green-blind)
#F5E17E
Tritanopia (blue-blind)
#FFD2C7
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f0df7a;
/* rgb */ color: rgb(240, 223, 122);
/* oklch */ color: oklch(89.7% 0.124 99.9);
Tailwind
colors: {
  custom: {
    50: '#f7e8a2',
    500: '#f0df7a',
    950: '#000000',
  },
}
SCSS
$custom: #f0df7a;
$custom-light: #f7e8a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df7a",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 122
  },
  "hsl": {
    "h": 51.356,
    "s": 79.73,
    "l": 70.98
  },
  "oklch": {
    "l": 0.89673,
    "c": 0.12365,
    "h": 99.9
  },
  "luminance": 0.72706
}

Semantic roles & 50–950 ramp

primary
#F0DF7A
secondary
#4457CA
accent
#28DC09
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #F0DF7A

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#F0DF7A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva