#F0DB7A#F0DB7A

#F0DB7A is a very light, vivid yellow. Relative luminance 0.706; OKLCH L 88.9% C 0.120 H 97.4°. Best body text is #000000 at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#F0DB7A
RGBrgb(240, 219, 122)
HSLhsl(49, 80%, 71%)
HSVhsv(49, 49%, 94%)
CMYKcmyk(0%, 8.8%, 49.2%, 5.9%)
CIE-LABlab(87.29, -5.19, 49.96)
CIE-LCHlch(87.29, 50.23, 95.93°)
OKLaboklab(88.87% -0.0155 0.1191)
OKLCHoklch(88.87% 0.12 97.4)
XYZxyz(64.7816, 70.5959, 28.6226)
Luminance0.7059 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0DB7A #7A8FF0
analogous
#F0A07A #F0DB7A #CAF07A
triadic
#F0DB7A #7AF0DB #DB7AF0
tetradic
#F0DB7A #7AF0A0 #7A8FF0 #F07ACA
square
#F0DB7A #7AF0A0 #7A8FF0 #F07ACA
split-complementary
#F0DB7A #7ACAF0 #A07AF0
monochromatic
#D7B518 #EACC43 #F0DB7A #F6EAB1 #FCF8E4

Accessibility & contrast

On white

1.39
#F0DB7A on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.12
#F0DB7A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0DB7A
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0DB7A#FFFFFF#000000##000000
##F0DB7A1.001.3915.1215.12
#FFFFFF1.391.0021.0021.00
#00000015.1221.001.001.00
##00000015.1221.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD772
Deuteranopia (green-blind)
#F2DE7E
Tritanopia (blue-blind)
#FFCEC4
Achromatopsia (no color)
#DBDBDB

Design tokens & code

CSS
--color: #f0db7a;
/* rgb */ color: rgb(240, 219, 122);
/* oklch */ color: oklch(88.9% 0.120 97.4);
Tailwind
colors: {
  custom: {
    50: '#f7e5a2',
    500: '#f0db7a',
    950: '#000000',
  },
}
SCSS
$custom: #f0db7a;
$custom-light: #f7e5a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f0db7a",
  "rgb": {
    "r": 240,
    "g": 219,
    "b": 122
  },
  "hsl": {
    "h": 49.322,
    "s": 79.73,
    "l": 70.98
  },
  "oklch": {
    "l": 0.88866,
    "c": 0.12007,
    "h": 97.4
  },
  "luminance": 0.70593
}

Semantic roles & 50–950 ramp

primary
#F0DB7A
secondary
#445CCA
accent
#2FDC09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #F0DB7A

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

Preview Lab → · Contrast checker → · Palette generator →

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