#F5DC87#F5DC87

#F5DC87 is a very light, moderate yellow. Relative luminance 0.723; OKLCH L 89.7% C 0.109 H 93.5°. Best body text is #000000 at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#F5DC87
RGBrgb(245, 220, 135)
HSLhsl(46, 85%, 75%)
HSVhsv(46, 45%, 96%)
CMYKcmyk(0%, 10.2%, 44.9%, 3.9%)
CIE-LABlab(88.14, -2.50, 44.77)
CIE-LCHlch(88.14, 44.84, 93.20°)
OKLaboklab(89.69% -0.0067 0.1083)
OKLCHoklch(89.69% 0.109 93.5)
XYZxyz(67.6245, 72.3508, 33.3199)
Luminance0.7235 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5DC87 #87A0F5
analogous
#F5A587 #F5DC87 #D7F587
triadic
#F5DC87 #87F5DC #DC87F5
tetradic
#F5DC87 #87F5A5 #87A0F5 #F587D7
square
#F5DC87 #87F5A5 #87A0F5 #F587D7
split-complementary
#F5DC87 #87D7F5 #A587F5
monochromatic
#ECBB16 #F0CC4F #F5DC87 #FAECBF #FDF7E3

Accessibility & contrast

On white

1.36
#F5DC87 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.47
#F5DC87 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5DC87
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5DC87#FFFFFF#000000##000000
##F5DC871.001.3615.4715.47
#FFFFFF1.361.0021.0021.00
#00000015.4721.001.001.00
##00000015.4721.001.001.00

Color blindness preview

Protanopia (red-blind)
#ECD980
Deuteranopia (green-blind)
#F3E08A
Tritanopia (blue-blind)
#FFD0C7
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #f5dc87;
/* rgb */ color: rgb(245, 220, 135);
/* oklch */ color: oklch(89.7% 0.109 93.5);
Tailwind
colors: {
  custom: {
    50: '#fae6ab',
    500: '#f5dc87',
    950: '#000000',
  },
}
SCSS
$custom: #f5dc87;
$custom-light: #fae6ab;
$custom-dark: #000000;
JSON
{
  "hex": "#f5dc87",
  "rgb": {
    "r": 245,
    "g": 220,
    "b": 135
  },
  "hsl": {
    "h": 46.364,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.89693,
    "c": 0.10853,
    "h": 93.5
  },
  "luminance": 0.72348
}

Semantic roles & 50–950 ramp

primary
#F5DC87
secondary
#4E6CD2
accent
#37E104
background
#FFFEFD
surface
#FFFCF7
border
#D7D5D0
text
#181510
muted
#868481

Preview Lab

Preview with #F5DC87

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

Preview Lab → · Contrast checker → · Palette generator →

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