#F5E871#F5E871

#F5E871 is a very light, vivid yellow. Relative luminance 0.783; OKLCH L 91.8% C 0.141 H 103.1°. Best body text is #000000 at 16.66:1 contrast (WCAG AA passes).

Color values

HEX#F5E871
RGBrgb(245, 232, 113)
HSLhsl(54, 87%, 70%)
HSVhsv(54, 54%, 96%)
CMYKcmyk(0%, 5.3%, 53.9%, 3.9%)
CIE-LABlab(90.93, -10.44, 58.59)
CIE-LCHlch(90.93, 59.51, 100.11°)
OKLaboklab(91.82% -0.0319 0.137)
OKLCHoklch(91.82% 0.141 103.1)
XYZxyz(69.4956, 78.3203, 27.0762)
Luminance0.7832 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E871 #717EF5
analogous
#F5A671 #F5E871 #C0F571
triadic
#F5E871 #71F5E8 #E871F5
tetradic
#F5E871 #71F5A6 #717EF5 #F571C0
square
#F5E871 #71F5A6 #717EF5 #F571C0
split-complementary
#F5E871 #71C0F5 #A671F5
monochromatic
#DCC810 #F1DF38 #F5E871 #F9F1AA #FDFAE2

Accessibility & contrast

On white

1.26
#F5E871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.66
#F5E871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E871
16.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E871#FFFFFF#000000##000000
##F5E8711.001.2616.6616.66
#FFFFFF1.261.0021.0021.00
#00000016.6621.001.001.00
##00000016.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE165
Deuteranopia (green-blind)
#FEE877
Tritanopia (blue-blind)
#FFDACD
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f5e871;
/* rgb */ color: rgb(245, 232, 113);
/* oklch */ color: oklch(91.8% 0.141 103.1);
Tailwind
colors: {
  custom: {
    50: '#fbef9d',
    500: '#f5e871',
    950: '#000000',
  },
}
SCSS
$custom: #f5e871;
$custom-light: #fbef9d;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e871",
  "rgb": {
    "r": 245,
    "g": 232,
    "b": 113
  },
  "hsl": {
    "h": 54.091,
    "s": 86.842,
    "l": 70.196
  },
  "oklch": {
    "l": 0.91817,
    "c": 0.14065,
    "h": 103.1
  },
  "luminance": 0.78318
}

Semantic roles & 50–950 ramp

primary
#F5E871
secondary
#3B4ACF
accent
#18E302
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160E
muted
#86857F

Preview Lab

Preview with #F5E871

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

Preview Lab → · Contrast checker → · Palette generator →

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