#F0D372#F0D372

#F0D372 is a very light, vivid yellow. Relative luminance 0.663; OKLCH L 87.2% C 0.121 H 93.1°. Best body text is #000000 at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#F0D372
RGBrgb(240, 211, 114)
HSLhsl(46, 81%, 69%)
HSVhsv(46, 53%, 94%)
CMYKcmyk(0%, 12.1%, 52.5%, 5.9%)
CIE-LABlab(85.17, -1.80, 51.24)
CIE-LCHlch(85.17, 51.27, 92.01°)
OKLaboklab(87.16% -0.0065 0.1212)
OKLCHoklch(87.16% 0.121 93.1)
XYZxyz(62.2690, 66.3315, 25.4396)
Luminance0.6633 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D372 #728FF0
analogous
#F09472 #F0D372 #CEF072
triadic
#F0D372 #72F0D3 #D372F0
tetradic
#F0D372 #72F094 #728FF0 #F072CE
square
#F0D372 #72F094 #728FF0 #F072CE
split-complementary
#F0D372 #72CEF0 #9472F0
monochromatic
#D1A616 #EAC23B #F0D372 #F6E4A9 #FCF6E1

Accessibility & contrast

On white

1.47
#F0D372 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.27
#F0D372 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D372
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D372#FFFFFF#000000##000000
##F0D3721.001.4714.2714.27
#FFFFFF1.471.0021.0021.00
#00000014.2721.001.001.00
##00000014.2721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E5D069
Deuteranopia (green-blind)
#ECD876
Tritanopia (blue-blind)
#FFC6BC
Achromatopsia (no color)
#D5D5D5

Design tokens & code

CSS
--color: #f0d372;
/* rgb */ color: rgb(240, 211, 114);
/* oklch */ color: oklch(87.2% 0.121 93.1);
Tailwind
colors: {
  custom: {
    50: '#f7e09d',
    500: '#f0d372',
    950: '#000000',
  },
}
SCSS
$custom: #f0d372;
$custom-light: #f7e09d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d372",
  "rgb": {
    "r": 240,
    "g": 211,
    "b": 114
  },
  "hsl": {
    "h": 46.19,
    "s": 80.769,
    "l": 69.412
  },
  "oklch": {
    "l": 0.87156,
    "c": 0.12139,
    "h": 93.1
  },
  "luminance": 0.66329
}

Semantic roles & 50–950 ramp

primary
#F0D372
secondary
#3D5DC9
accent
#39DD08
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F0D372

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

Preview Lab → · Contrast checker → · Palette generator →

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