#F0E871#F0E871

#F0E871 is a very light, vivid yellow. Relative luminance 0.774; OKLCH L 91.4% C 0.141 H 105.4°. Best body text is #000000 at 16.49:1 contrast (WCAG AA passes).

Color values

HEX#F0E871
RGBrgb(240, 232, 113)
HSLhsl(56, 81%, 69%)
HSVhsv(56, 53%, 94%)
CMYKcmyk(0%, 3.3%, 52.9%, 5.9%)
CIE-LABlab(90.52, -12.44, 58.01)
CIE-LCHlch(90.52, 59.33, 102.11°)
OKLaboklab(91.4% -0.0373 0.1358)
OKLCHoklch(91.4% 0.141 105.4)
XYZxyz(67.7744, 77.4328, 26.9955)
Luminance0.7743 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F0E871 #7179F0
analogous
#F0A871 #F0E871 #B9F071
triadic
#F0E871 #71F0E8 #E871F0
tetradic
#F0E871 #71F0A8 #7179F0 #F071B9
square
#F0E871 #71F0A8 #7179F0 #F071B9
split-complementary
#F0E871 #71B9F0 #A871F0
monochromatic
#D1C516 #EADF3A #F0E871 #F6F1A8 #FCFAE0

Accessibility & contrast

On white

1.27
#F0E871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.49
#F0E871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F0E871
16.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F0E871#FFFFFF#000000##000000
##F0E8711.001.2716.4916.49
#FFFFFF1.271.0021.0021.00
#00000016.4921.001.001.00
##00000016.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E166
Deuteranopia (green-blind)
#FCE677
Tritanopia (blue-blind)
#FFDBCD
Achromatopsia (no color)
#E4E4E4

Design tokens & code

CSS
--color: #f0e871;
/* rgb */ color: rgb(240, 232, 113);
/* oklch */ color: oklch(91.4% 0.141 105.4);
Tailwind
colors: {
  custom: {
    50: '#f7ef9d',
    500: '#f0e871',
    950: '#000000',
  },
}
SCSS
$custom: #f0e871;
$custom-light: #f7ef9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f0e871",
  "rgb": {
    "r": 240,
    "g": 232,
    "b": 113
  },
  "hsl": {
    "h": 56.22,
    "s": 80.892,
    "l": 69.216
  },
  "oklch": {
    "l": 0.91397,
    "c": 0.14087,
    "h": 105.4
  },
  "luminance": 0.77431
}

Semantic roles & 50–950 ramp

primary
#F0E871
secondary
#3C45C9
accent
#16DD08
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#17160E
muted
#85857F

Preview Lab

Preview with #F0E871

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

Preview Lab → · Contrast checker → · Palette generator →

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