#F5D87F#F5D87F

#F5D87F is a very light, moderate yellow. Relative luminance 0.701; OKLCH L 88.8% C 0.114 H 91.9°. Best body text is #000000 at 15.01:1 contrast (WCAG AA passes).

Color values

HEX#F5D87F
RGBrgb(245, 216, 127)
HSLhsl(45, 86%, 73%)
HSVhsv(45, 48%, 96%)
CMYKcmyk(0%, 11.8%, 48.2%, 3.9%)
CIE-LABlab(87.03, -1.21, 47.32)
CIE-LCHlch(87.03, 47.33, 91.47°)
OKLaboklab(88.78% -0.0038 0.1135)
OKLCHoklch(88.78% 0.114 91.9)
XYZxyz(66.0450, 70.0594, 30.1185)
Luminance0.7006 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5D87F #7F9CF5
analogous
#F59D7F #F5D87F #D7F57F
triadic
#F5D87F #7FF5D8 #D87FF5
tetradic
#F5D87F #7FF59D #7F9CF5 #F57FD7
square
#F5D87F #7FF59D #7F9CF5 #F57FD7
split-complementary
#F5D87F #7FD7F5 #9D7FF5
monochromatic
#E8B312 #F1C746 #F5D87F #F9E9B8 #FDF6E3

Accessibility & contrast

On white

1.40
#F5D87F on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.01
#F5D87F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5D87F
15.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5D87F#FFFFFF#000000##000000
##F5D87F1.001.4015.0115.01
#FFFFFF1.401.0021.0021.00
#00000015.0121.001.001.00
##00000015.0121.001.001.00

Color blindness preview

Protanopia (red-blind)
#E9D578
Deuteranopia (green-blind)
#F1DE82
Tritanopia (blue-blind)
#FFCBC3
Achromatopsia (no color)
#DADADA

Design tokens & code

CSS
--color: #f5d87f;
/* rgb */ color: rgb(245, 216, 127);
/* oklch */ color: oklch(88.8% 0.114 91.9);
Tailwind
colors: {
  custom: {
    50: '#fae3a6',
    500: '#f5d87f',
    950: '#000000',
  },
}
SCSS
$custom: #f5d87f;
$custom-light: #fae3a6;
$custom-dark: #000000;
JSON
{
  "hex": "#f5d87f",
  "rgb": {
    "r": 245,
    "g": 216,
    "b": 127
  },
  "hsl": {
    "h": 45.254,
    "s": 85.507,
    "l": 72.941
  },
  "oklch": {
    "l": 0.88781,
    "c": 0.11357,
    "h": 91.9
  },
  "luminance": 0.70057
}

Semantic roles & 50–950 ramp

primary
#F5D87F
secondary
#4769D1
accent
#3AE203
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480

Preview Lab

Preview with #F5D87F

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

Preview Lab → · Contrast checker → · Palette generator →

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