#F0DC7E#F0DC7E

#F0DC7E is a very light, moderate yellow. Relative luminance 0.712; OKLCH L 89.1% C 0.117 H 97.6°. Best body text is #000000 at 15.24:1 contrast (WCAG AA passes).

Color values

HEX#F0DC7E
RGBrgb(240, 220, 126)
HSLhsl(49, 79%, 72%)
HSVhsv(49, 48%, 94%)
CMYKcmyk(0%, 8.3%, 47.5%, 5.9%)
CIE-LABlab(87.59, -5.33, 48.40)
CIE-LCHlch(87.59, 48.70, 96.29°)
OKLaboklab(89.12% -0.0155 0.1159)
OKLCHoklch(89.12% 0.117 97.6)
XYZxyz(65.2962, 71.2204, 30.0420)
Luminance0.7122 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC7E #7E92F0
analogous
#F0A37E #F0DC7E #CBF07E
triadic
#F0DC7E #7EF0DC #DC7EF0
tetradic
#F0DC7E #7EF0A3 #7E92F0 #F07ECB
square
#F0DC7E #7EF0A3 #7E92F0 #F07ECB
split-complementary
#F0DC7E #7ECBF0 #A37EF0
monochromatic
#DAB819 #EACD47 #F0DC7E #F6EBB5 #FCF8E4

Accessibility & contrast

On white

1.38
#F0DC7E on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.24
#F0DC7E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DC7E
15.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DC7E#FFFFFF#000000##000000
##F0DC7E1.001.3815.2415.24
#FFFFFF1.381.0021.0021.00
#00000015.2421.001.001.00
##00000015.2421.001.001.00

Color blindness preview

Protanopia (red-blind)
#EDD876
Deuteranopia (green-blind)
#F2DF82
Tritanopia (blue-blind)
#FFD0C6
Achromatopsia (no color)
#DCDCDC

Design tokens & code

CSS
--color: #f0dc7e;
/* rgb */ color: rgb(240, 220, 126);
/* oklch */ color: oklch(89.1% 0.117 97.6);
Tailwind
colors: {
  custom: {
    50: '#f7e6a5',
    500: '#f0dc7e',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc7e;
$custom-light: #f7e6a5;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc7e",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 126
  },
  "hsl": {
    "h": 49.474,
    "s": 79.167,
    "l": 71.765
  },
  "oklch": {
    "l": 0.89122,
    "c": 0.11695,
    "h": 97.6
  },
  "luminance": 0.71218
}

Semantic roles & 50–950 ramp

primary
#F0DC7E
secondary
#485FCA
accent
#2FDB0A
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #F0DC7E

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

Preview Lab → · Contrast checker → · Palette generator →

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