#F0D87F#F0D87F

#F0D87F is a very light, moderate yellow. Relative luminance 0.692; OKLCH L 88.3% C 0.113 H 94.7°. Best body text is #000000 at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#F0D87F
RGBrgb(240, 216, 127)
HSLhsl(47, 79%, 72%)
HSVhsv(47, 47%, 94%)
CMYKcmyk(0%, 10%, 47.1%, 5.9%)
CIE-LABlab(86.59, -3.21, 46.68)
CIE-LCHlch(86.59, 46.79, 93.94°)
OKLaboklab(88.33% -0.0093 0.1122)
OKLCHoklch(88.33% 0.113 94.7)
XYZxyz(64.3238, 69.1718, 30.0378)
Luminance0.6917 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D87F #7F97F0
analogous
#F0A07F #F0D87F #CFF07F
triadic
#F0D87F #7FF0D8 #D87FF0
tetradic
#F0D87F #7FF0A0 #7F97F0 #F07FCF
square
#F0D87F #7FF0A0 #7F97F0 #F07FCF
split-complementary
#F0D87F #7FCFF0 #A07FF0
monochromatic
#DBB21A #EAC748 #F0D87F #F6E9B6 #FCF7E4

Accessibility & contrast

On white

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

On black

14.83
#F0D87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D87F
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D87F#FFFFFF#000000##000000
##F0D87F1.001.4214.8314.83
#FFFFFF1.421.0021.0021.00
#00000014.8321.001.001.00
##00000014.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D478
Deuteranopia (green-blind)
#EFDC82
Tritanopia (blue-blind)
#FFCCC3
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f0d87f;
/* rgb */ color: rgb(240, 216, 127);
/* oklch */ color: oklch(88.3% 0.113 94.7);
Tailwind
colors: {
  custom: {
    50: '#f7e3a6',
    500: '#f0d87f',
    950: '#000000',
  },
}
SCSS
$custom: #f0d87f;
$custom-light: #f7e3a6;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d87f",
  "rgb": {
    "r": 240,
    "g": 216,
    "b": 127
  },
  "hsl": {
    "h": 47.257,
    "s": 79.021,
    "l": 71.961
  },
  "oklch": {
    "l": 0.88333,
    "c": 0.11253,
    "h": 94.7
  },
  "luminance": 0.69169
}

Semantic roles & 50–950 ramp

primary
#F0D87F
secondary
#4964CB
accent
#37DB0A
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480

Preview Lab

Preview with #F0D87F

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

Preview Lab → · Contrast checker → · Palette generator →

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