#F5E87F#F5E87F

#F5E87F is a very light, vivid yellow. Relative luminance 0.787; OKLCH L 92.0% C 0.127 H 102.3°. Best body text is #000000 at 16.73:1 contrast (WCAG AA passes).

Color values

HEX#F5E87F
RGBrgb(245, 232, 127)
HSLhsl(53, 86%, 73%)
HSVhsv(53, 48%, 96%)
CMYKcmyk(0%, 5.3%, 48.2%, 3.9%)
CIE-LABlab(91.08, -9.28, 52.27)
CIE-LCHlch(91.08, 53.09, 100.06°)
OKLaboklab(91.99% -0.0271 0.1245)
OKLCHoklch(91.99% 0.127 102.3)
XYZxyz(70.3455, 78.6603, 31.5520)
Luminance0.7866 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5E87F #7F8CF5
analogous
#F5AD7F #F5E87F #C7F57F
triadic
#F5E87F #7FF5E8 #E87FF5
tetradic
#F5E87F #7FF5AD #7F8CF5 #F57FC7
square
#F5E87F #7FF5AD #7F8CF5 #F57FC7
split-complementary
#F5E87F #7FC7F5 #AD7FF5
monochromatic
#E8D012 #F1DE46 #F5E87F #F9F2B8 #FDFAE3

Accessibility & contrast

On white

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

On black

16.73
#F5E87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5E87F
16.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5E87F#FFFFFF#000000##000000
##F5E87F1.001.2616.7316.73
#FFFFFF1.261.0021.0021.00
#00000016.7321.001.001.00
##00000016.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#F9E276
Deuteranopia (green-blind)
#FDE884
Tritanopia (blue-blind)
#FFDBCF
Achromatopsia (no color)
#E5E5E5

Design tokens & code

CSS
--color: #f5e87f;
/* rgb */ color: rgb(245, 232, 127);
/* oklch */ color: oklch(92.0% 0.127 102.3);
Tailwind
colors: {
  custom: {
    50: '#faefa6',
    500: '#f5e87f',
    950: '#000000',
  },
}
SCSS
$custom: #f5e87f;
$custom-light: #faefa6;
$custom-dark: #000000;
JSON
{
  "hex": "#f5e87f",
  "rgb": {
    "r": 245,
    "g": 232,
    "b": 127
  },
  "hsl": {
    "h": 53.39,
    "s": 85.507,
    "l": 72.941
  },
  "oklch": {
    "l": 0.9199,
    "c": 0.1274,
    "h": 102.3
  },
  "luminance": 0.78658
}

Semantic roles & 50–950 ramp

primary
#F5E87F
secondary
#4756D1
accent
#1CE203
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18160F
muted
#868580

Preview Lab

Preview with #F5E87F

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

Preview Lab → · Contrast checker → · Palette generator →

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