#F0D772#F0D772

#F0D772 is a very light, vivid yellow. Relative luminance 0.683; OKLCH L 88.0% C 0.124 H 95.7°. Best body text is #000000 at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#F0D772
RGBrgb(240, 215, 114)
HSLhsl(48, 81%, 69%)
HSVhsv(48, 53%, 94%)
CMYKcmyk(0%, 10.4%, 52.5%, 5.9%)
CIE-LABlab(86.18, -3.84, 52.45)
CIE-LCHlch(86.18, 52.59, 94.19°)
OKLaboklab(87.96% -0.0124 0.1239)
OKLCHoklch(87.96% 0.124 95.7)
XYZxyz(63.2751, 68.3437, 25.7750)
Luminance0.6834 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D772 #728BF0
analogous
#F09872 #F0D772 #CAF072
triadic
#F0D772 #72F0D7 #D772F0
tetradic
#F0D772 #72F098 #728BF0 #F072CA
square
#F0D772 #72F098 #728BF0 #F072CA
split-complementary
#F0D772 #72CAF0 #9872F0
monochromatic
#D1AC16 #EAC73B #F0D772 #F6E7A9 #FCF6E1

Accessibility & contrast

On white

1.43
#F0D772 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.67
#F0D772 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D772
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D772#FFFFFF#000000##000000
##F0D7721.001.4314.6714.67
#FFFFFF1.431.0021.0021.00
#00000014.6721.001.001.00
##00000014.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D369
Deuteranopia (green-blind)
#EFDB76
Tritanopia (blue-blind)
#FFCAC0
Achromatopsia (no color)
#D8D8D8

Design tokens & code

CSS
--color: #f0d772;
/* rgb */ color: rgb(240, 215, 114);
/* oklch */ color: oklch(88.0% 0.124 95.7);
Tailwind
colors: {
  custom: {
    50: '#f7e39d',
    500: '#f0d772',
    950: '#000000',
  },
}
SCSS
$custom: #f0d772;
$custom-light: #f7e39d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d772",
  "rgb": {
    "r": 240,
    "g": 215,
    "b": 114
  },
  "hsl": {
    "h": 48.095,
    "s": 80.769,
    "l": 69.412
  },
  "oklch": {
    "l": 0.87957,
    "c": 0.12447,
    "h": 95.7
  },
  "luminance": 0.68341
}

Semantic roles & 50–950 ramp

primary
#F0D772
secondary
#3D59C9
accent
#33DD08
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F

Preview Lab

Preview with #F0D772

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

Preview Lab → · Contrast checker → · Palette generator →

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