#F0D87D#F0D87D

#F0D87D is a very light, moderate yellow. Relative luminance 0.691; OKLCH L 88.3% C 0.115 H 95.0°. Best body text is #000000 at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#F0D87D
RGBrgb(240, 216, 125)
HSLhsl(47, 79%, 72%)
HSVhsv(47, 48%, 94%)
CMYKcmyk(0%, 10%, 47.9%, 5.9%)
CIE-LABlab(86.56, -3.40, 47.63)
CIE-LCHlch(86.56, 47.75, 94.08°)
OKLaboklab(88.3% -0.01 0.1141)
OKLCHoklch(88.3% 0.115 95)
XYZxyz(64.1947, 69.1202, 29.3581)
Luminance0.6912 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D87D #7D95F0
analogous
#F09F7D #F0D87D #CFF07D
triadic
#F0D87D #7DF0D8 #D87DF0
tetradic
#F0D87D #7DF09F #7D95F0 #F07DCF
square
#F0D87D #7DF09F #7D95F0 #F07DCF
split-complementary
#F0D87D #7DCFF0 #9F7DF0
monochromatic
#DAB119 #EAC846 #F0D87D #F6E8B4 #FCF7E4

Accessibility & contrast

On white

1.42
#F0D87D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

14.82
#F0D87D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D87D
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D87D#FFFFFF#000000##000000
##F0D87D1.001.4214.8214.82
#FFFFFF1.421.0021.0021.00
#00000014.8221.001.001.00
##00000014.8221.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D475
Deuteranopia (green-blind)
#EFDC81
Tritanopia (blue-blind)
#FFCCC2
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f0d87d;
/* rgb */ color: rgb(240, 216, 125);
/* oklch */ color: oklch(88.3% 0.115 95.0);
Tailwind
colors: {
  custom: {
    50: '#f7e3a4',
    500: '#f0d87d',
    950: '#000000',
  },
}
SCSS
$custom: #f0d87d;
$custom-light: #f7e3a4;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d87d",
  "rgb": {
    "r": 240,
    "g": 216,
    "b": 125
  },
  "hsl": {
    "h": 47.478,
    "s": 79.31,
    "l": 71.569
  },
  "oklch": {
    "l": 0.88304,
    "c": 0.11456,
    "h": 95
  },
  "luminance": 0.69118
}

Semantic roles & 50–950 ramp

primary
#F0D87D
secondary
#4762CA
accent
#36DC0A
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #F0D87D

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

Preview Lab → · Contrast checker → · Palette generator →

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