#F5F587#F5F587

#F5F587 is a very light, vivid yellow. Relative luminance 0.865; OKLCH L 94.7% C 0.133 H 108.7°. Best body text is #000000 at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#F5F587
RGBrgb(245, 245, 135)
HSLhsl(60, 85%, 75%)
HSVhsv(60, 45%, 96%)
CMYKcmyk(0%, 0%, 44.9%, 3.9%)
CIE-LABlab(94.51, -14.96, 52.66)
CIE-LCHlch(94.51, 54.75, 105.86°)
OKLaboklab(94.75% -0.0426 0.1259)
OKLCHoklch(94.75% 0.133 108.7)
XYZxyz(74.6832, 86.4682, 35.6729)
Luminance0.8647 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#F5F587 #8787F5
analogous
#F5BE87 #F5F587 #BEF587
triadic
#F5F587 #87F5F5 #F587F5
tetradic
#F5F587 #87F5BE #8787F5 #F587BE
square
#F5F587 #87F5BE #8787F5 #F587BE
split-complementary
#F5F587 #87BEF5 #BE87F5
monochromatic
#ECEC16 #F0F04F #F5F587 #FAFABF #FDFDE3

Accessibility & contrast

On white

1.15
#F5F587 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.29
#F5F587 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #F5F587
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##F5F587#FFFFFF#000000##000000
##F5F5871.001.1518.2918.29
#FFFFFF1.151.0021.0021.00
#00000018.2921.001.001.00
##00000018.2921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED7E
Deuteranopia (green-blind)
#FFF18C
Tritanopia (blue-blind)
#FFE9DB
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #f5f587;
/* rgb */ color: rgb(245, 245, 135);
/* oklch */ color: oklch(94.7% 0.133 108.7);
Tailwind
colors: {
  custom: {
    50: '#faf8ac',
    500: '#f5f587',
    950: '#000000',
  },
}
SCSS
$custom: #f5f587;
$custom-light: #faf8ac;
$custom-dark: #000000;
JSON
{
  "hex": "#f5f587",
  "rgb": {
    "r": 245,
    "g": 245,
    "b": 135
  },
  "hsl": {
    "h": 60,
    "s": 84.615,
    "l": 74.51
  },
  "oklch": {
    "l": 0.94748,
    "c": 0.13295,
    "h": 108.7
  },
  "luminance": 0.86467
}

Semantic roles & 50–950 ramp

primary
#F5F587
secondary
#4E4ED2
accent
#04E104
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #F5F587

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

Preview Lab → · Contrast checker → · Palette generator →

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