#F0DC7D#F0DC7D

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

Color values

HEX#F0DC7D
RGBrgb(240, 220, 125)
HSLhsl(50, 79%, 72%)
HSVhsv(50, 48%, 94%)
CMYKcmyk(0%, 8.3%, 47.9%, 5.9%)
CIE-LABlab(87.58, -5.42, 48.87)
CIE-LCHlch(87.58, 49.17, 96.33°)
OKLaboklab(89.11% -0.0159 0.1169)
OKLCHoklch(89.11% 0.118 97.7)
XYZxyz(65.2320, 71.1948, 29.7039)
Luminance0.7119 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DC7D #7D91F0
analogous
#F0A37D #F0DC7D #CBF07D
triadic
#F0DC7D #7DF0DC #DC7DF0
tetradic
#F0DC7D #7DF0A3 #7D91F0 #F07DCB
square
#F0DC7D #7DF0A3 #7D91F0 #F07DCB
split-complementary
#F0DC7D #7DCBF0 #A37DF0
monochromatic
#DAB819 #EACD46 #F0DC7D #F6EBB4 #FCF8E4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##F0DC7D#FFFFFF#000000##000000
##F0DC7D1.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)
#EDD775
Deuteranopia (green-blind)
#F2DF81
Tritanopia (blue-blind)
#FFD0C5
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f0dc7d;
/* rgb */ color: rgb(240, 220, 125);
/* oklch */ color: oklch(89.1% 0.118 97.7);
Tailwind
colors: {
  custom: {
    50: '#f7e6a4',
    500: '#f0dc7d',
    950: '#000000',
  },
}
SCSS
$custom: #f0dc7d;
$custom-light: #f7e6a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f0dc7d",
  "rgb": {
    "r": 240,
    "g": 220,
    "b": 125
  },
  "hsl": {
    "h": 49.565,
    "s": 79.31,
    "l": 71.569
  },
  "oklch": {
    "l": 0.89108,
    "c": 0.11796,
    "h": 97.7
  },
  "luminance": 0.71192
}

Semantic roles & 50–950 ramp

primary
#F0DC7D
secondary
#475ECA
accent
#2EDC0A
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #F0DC7D

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

Preview Lab → · Contrast checker → · Palette generator →

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