#F5E873#F5E873

#F5E873 is a very light, vivid yellow. Relative luminance 0.784; OKLCH L 91.8% C 0.139 H 103.0°. Best body text is #000000 at 16.67:1 contrast (WCAG AA passes).

Color values

HEX#F5E873
RGBrgb(245, 232, 115)
HSLhsl(54, 87%, 71%)
HSVhsv(54, 53%, 96%)
CMYKcmyk(0%, 5.3%, 53.1%, 3.9%)
CIE-LABlab(90.95, -10.28, 57.70)
CIE-LCHlch(90.95, 58.61, 100.11°)
OKLaboklab(91.84% -0.0312 0.1353)
OKLCHoklch(91.84% 0.139 103)
XYZxyz(69.6095, 78.3659, 27.6757)
Luminance0.7836 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E873 #7380F5
analogous
#F5A773 #F5E873 #C1F573
triadic
#F5E873 #73F5E8 #E873F5
tetradic
#F5E873 #73F5A7 #7380F5 #F573C1
square
#F5E873 #73F5A7 #7380F5 #F573C1
split-complementary
#F5E873 #73C1F5 #A773F5
monochromatic
#DEC910 #F1DF3A #F5E873 #F9F1AC #FDFAE2

Accessibility & contrast

On white

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

On black

16.67
#F5E873 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E873
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E873#FFFFFF#000000##000000
##F5E8731.001.2616.6716.67
#FFFFFF1.261.0021.0021.00
#00000016.6721.001.001.00
##00000016.6721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FAE168
Deuteranopia (green-blind)
#FEE879
Tritanopia (blue-blind)
#FFDBCE
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f5e873;
/* rgb */ color: rgb(245, 232, 115);
/* oklch */ color: oklch(91.8% 0.139 103.0);
Tailwind
colors: {
  custom: {
    50: '#fbef9e',
    500: '#f5e873',
    950: '#000000',
  },
}
SCSS
$custom: #f5e873;
$custom-light: #fbef9e;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e873",
  "rgb": {
    "r": 245,
    "g": 232,
    "b": 115
  },
  "hsl": {
    "h": 54,
    "s": 86.667,
    "l": 70.588
  },
  "oklch": {
    "l": 0.9184,
    "c": 0.13883,
    "h": 103
  },
  "luminance": 0.78364
}

Semantic roles & 50–950 ramp

primary
#F5E873
secondary
#3D4BCF
accent
#19E302
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160F
muted
#868580

Preview Lab

Preview with #F5E873

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

Preview Lab → · Contrast checker → · Palette generator →

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