#F0D87A#F0D87A

#F0D87A is a very light, moderate yellow. Relative luminance 0.690; OKLCH L 88.3% C 0.118 H 95.4°. Best body text is #000000 at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#F0D87A
RGBrgb(240, 216, 122)
HSLhsl(48, 80%, 71%)
HSVhsv(48, 49%, 94%)
CMYKcmyk(0%, 10%, 49.2%, 5.9%)
CIE-LABlab(86.53, -3.66, 49.04)
CIE-LCHlch(86.53, 49.17, 94.27°)
OKLaboklab(88.26% -0.0111 0.117)
OKLCHoklch(88.26% 0.118 95.4)
XYZxyz(64.0060, 69.0447, 28.3640)
Luminance0.6904 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0D87A #7A92F0
analogous
#F09D7A #F0D87A #CDF07A
triadic
#F0D87A #7AF0D8 #D87AF0
tetradic
#F0D87A #7AF09D #7A92F0 #F07ACD
square
#F0D87A #7AF09D #7A92F0 #F07ACD
split-complementary
#F0D87A #7ACDF0 #9D7AF0
monochromatic
#D7B018 #EAC843 #F0D87A #F6E8B1 #FCF7E4

Accessibility & contrast

On white

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

On black

14.81
#F0D87A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0D87A
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0D87A#FFFFFF#000000##000000
##F0D87A1.001.4214.8114.81
#FFFFFF1.421.0021.0021.00
#00000014.8121.001.001.00
##00000014.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D472
Deuteranopia (green-blind)
#EFDC7E
Tritanopia (blue-blind)
#FFCBC2
Achromatopsia (no color)
#D9D9D9

Design tokens & code

CSS
--color: #f0d87a;
/* rgb */ color: rgb(240, 216, 122);
/* oklch */ color: oklch(88.3% 0.118 95.4);
Tailwind
colors: {
  custom: {
    50: '#f7e3a2',
    500: '#f0d87a',
    950: '#000000',
  },
}
SCSS
$custom: #f0d87a;
$custom-light: #f7e3a2;
$custom-dark: #000000;
JSON
{
  "hex": "#f0d87a",
  "rgb": {
    "r": 240,
    "g": 216,
    "b": 122
  },
  "hsl": {
    "h": 47.797,
    "s": 79.73,
    "l": 70.98
  },
  "oklch": {
    "l": 0.88263,
    "c": 0.11756,
    "h": 95.4
  },
  "luminance": 0.69042
}

Semantic roles & 50–950 ramp

primary
#F0D87A
secondary
#445FCA
accent
#34DC09
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#17150F
muted
#858480

Preview Lab

Preview with #F0D87A

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

Preview Lab → · Contrast checker → · Palette generator →

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