#FFF987#FFF987

#FFF987 is a very light, vivid yellow. Relative luminance 0.908; OKLCH L 96.4% C 0.136 H 106.0°. Best body text is #000000 at 19.15:1 contrast (WCAG AA passes).

Color values

HEX#FFF987
RGBrgb(255, 249, 135)
HSLhsl(57, 100%, 76%)
HSVhsv(57, 47%, 100%)
CMYKcmyk(0%, 2.4%, 47.1%, 0%)
CIE-LABlab(96.31, -13.02, 55.03)
CIE-LCHlch(96.31, 56.55, 103.31°)
OKLaboklab(96.37% -0.0376 0.131)
OKLCHoklch(96.37% 0.136 106)
XYZxyz(79.4907, 90.7628, 36.2486)
Luminance0.9076 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFF987 #878DFF
analogous
#FFBD87 #FFF987 #C9FF87
triadic
#FFF987 #87FFF9 #F987FF
tetradic
#FFF987 #87FFBD #878DFF #FF87C9
square
#FFF987 #87FFBD #878DFF #FF87C9
split-complementary
#FFF987 #87C9FF #BD87FF
monochromatic
#FFF30D #FFF64A #FFF987 #FFFCC4 #FFFDE0

Accessibility & contrast

On white

1.10
#FFF987 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.15
#FFF987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFF987
19.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFF987#FFFFFF#000000##000000
##FFF9871.001.1019.1519.15
#FFFFFF1.101.0021.0021.00
#00000019.1521.001.001.00
##00000019.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF17D
Deuteranopia (green-blind)
#FFF78C
Tritanopia (blue-blind)
#FFECDE
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fff987;
/* rgb */ color: rgb(255, 249, 135);
/* oklch */ color: oklch(96.4% 0.136 106.0);
Tailwind
colors: {
  custom: {
    50: '#fffbac',
    500: '#fff987',
    950: '#000000',
  },
}
SCSS
$custom: #fff987;
$custom-light: #fffbac;
$custom-dark: #000000;
JSON
{
  "hex": "#fff987",
  "rgb": {
    "r": 255,
    "g": 249,
    "b": 135
  },
  "hsl": {
    "h": 57,
    "s": 100,
    "l": 76.471
  },
  "oklch": {
    "l": 0.96368,
    "c": 0.13632,
    "h": 106
  },
  "luminance": 0.90761
}

Semantic roles & 50–950 ramp

primary
#FFF987
secondary
#4B52DF
accent
#0BE600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FFF987

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

Preview Lab → · Contrast checker → · Palette generator →

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