#F0DF7E#F0DF7E

#F0DF7E is a very light, moderate yellow. Relative luminance 0.728; OKLCH L 89.7% C 0.120 H 99.6°. Best body text is #000000 at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#F0DF7E
RGBrgb(240, 223, 126)
HSLhsl(51, 79%, 72%)
HSVhsv(51, 48%, 94%)
CMYKcmyk(0%, 7.1%, 47.5%, 5.9%)
CIE-LABlab(88.36, -6.85, 49.34)
CIE-LCHlch(88.36, 49.81, 97.90°)
OKLaboklab(89.73% -0.0199 0.118)
OKLCHoklch(89.73% 0.12 99.6)
XYZxyz(66.0906, 72.8093, 30.3068)
Luminance0.7281 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DF7E #7E8FF0
analogous
#F0A67E #F0DF7E #C8F07E
triadic
#F0DF7E #7EF0DF #DF7EF0
tetradic
#F0DF7E #7EF0A6 #7E8FF0 #F07EC8
square
#F0DF7E #7EF0A6 #7E8FF0 #F07EC8
split-complementary
#F0DF7E #7EC8F0 #A67EF0
monochromatic
#DABD19 #EAD147 #F0DF7E #F6EDB5 #FCF8E4

Accessibility & contrast

On white

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

On black

15.56
#F0DF7E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DF7E
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DF7E#FFFFFF#000000##000000
##F0DF7E1.001.3515.5615.56
#FFFFFF1.351.0021.0021.00
#00000015.5621.001.001.00
##00000015.5621.001.001.00

Color blindness preview

Protanopia (red-blind)
#EFDA76
Deuteranopia (green-blind)
#F4E182
Tritanopia (blue-blind)
#FFD3C8
Achromatopsia (no color)
#DEDEDE

Design tokens & code

CSS
--color: #f0df7e;
/* rgb */ color: rgb(240, 223, 126);
/* oklch */ color: oklch(89.7% 0.120 99.6);
Tailwind
colors: {
  custom: {
    50: '#f7e8a5',
    500: '#f0df7e',
    950: '#000000',
  },
}
SCSS
$custom: #f0df7e;
$custom-light: #f7e8a5;
$custom-dark: #000000;
JSON
{
  "hex": "#f0df7e",
  "rgb": {
    "r": 240,
    "g": 223,
    "b": 126
  },
  "hsl": {
    "h": 51.053,
    "s": 79.167,
    "l": 71.765
  },
  "oklch": {
    "l": 0.89727,
    "c": 0.11966,
    "h": 99.6
  },
  "luminance": 0.72807
}

Semantic roles & 50–950 ramp

primary
#F0DF7E
secondary
#485BCA
accent
#29DB0A
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17160F
muted
#858480

Preview Lab

Preview with #F0DF7E

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

Preview Lab → · Contrast checker → · Palette generator →

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