#FCF987#FCF987

#FCF987 is a very light, vivid yellow. Relative luminance 0.902; OKLCH L 96.1% C 0.137 H 107.4°. Best body text is #000000 at 19.04:1 contrast (WCAG AA passes).

Color values

HEX#FCF987
RGBrgb(252, 249, 135)
HSLhsl(58, 95%, 76%)
HSVhsv(58, 46%, 99%)
CMYKcmyk(0%, 1.2%, 46.4%, 1.2%)
CIE-LABlab(96.08, -14.19, 54.69)
CIE-LCHlch(96.08, 56.50, 104.55°)
OKLaboklab(96.13% -0.0408 0.1303)
OKLCHoklch(96.13% 0.137 107.4)
XYZxyz(78.3955, 90.1980, 36.1973)
Luminance0.9020 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF987 #878AFC
analogous
#FCBE87 #FCF987 #C4FC87
triadic
#FCF987 #87FCF9 #F987FC
tetradic
#FCF987 #87FCBE #878AFC #FC87C4
square
#FCF987 #87FCBE #878AFC #FC87C4
split-complementary
#FCF987 #87C4FC #BE87FC
monochromatic
#F9F310 #FBF64B #FCF987 #FDFCC3 #FEFEE1

Accessibility & contrast

On white

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

On black

19.04
#FCF987 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF987
19.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF987#FFFFFF#000000##000000
##FCF9871.001.1019.0419.04
#FFFFFF1.101.0021.0021.00
#00000019.0421.001.001.00
##00000019.0421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fcf987;
/* rgb */ color: rgb(252, 249, 135);
/* oklch */ color: oklch(96.1% 0.137 107.4);
Tailwind
colors: {
  custom: {
    50: '#fffbac',
    500: '#fcf987',
    950: '#000000',
  },
}
SCSS
$custom: #fcf987;
$custom-light: #fffbac;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf987",
  "rgb": {
    "r": 252,
    "g": 249,
    "b": 135
  },
  "hsl": {
    "h": 58.462,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.96126,
    "c": 0.13657,
    "h": 107.4
  },
  "luminance": 0.90196
}

Semantic roles & 50–950 ramp

primary
#FCF987
secondary
#4C50DB
accent
#06E600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FCF987

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

Preview Lab → · Contrast checker → · Palette generator →

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