#FCF87D#FCF87D

#FCF87D is a very light, vivid yellow. Relative luminance 0.893; OKLCH L 95.8% C 0.145 H 107.2°. Best body text is #000000 at 18.86:1 contrast (WCAG AA passes).

Color values

HEX#FCF87D
RGBrgb(252, 248, 125)
HSLhsl(58, 95%, 74%)
HSVhsv(58, 50%, 99%)
CMYKcmyk(0%, 1.6%, 50.4%, 1.2%)
CIE-LABlab(95.71, -14.57, 58.86)
CIE-LCHlch(95.71, 60.64, 103.90°)
OKLaboklab(95.8% -0.0428 0.1386)
OKLCHoklch(95.8% 0.145 107.2)
XYZxyz(77.4159, 89.3130, 32.5591)
Luminance0.8931 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF87D #7D81FC
analogous
#FCB97D #FCF87D #C1FC7D
triadic
#FCF87D #7DFCF8 #F87DFC
tetradic
#FCF87D #7DFCB9 #7D81FC #FC7DC1
square
#FCF87D #7DFCB9 #7D81FC #FC7DC1
split-complementary
#FCF87D #7DC1FC #B97DFC
monochromatic
#F9F106 #FBF541 #FCF87D #FDFBB9 #FEFDE1

Accessibility & contrast

On white

1.11
#FCF87D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.86
#FCF87D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF87D
18.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF87D#FFFFFF#000000##000000
##FCF87D1.001.1118.8618.86
#FFFFFF1.111.0021.0021.00
#00000018.8621.001.001.00
##00000018.8621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF072
Deuteranopia (green-blind)
#FFF583
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fcf87d;
/* rgb */ color: rgb(252, 248, 125);
/* oklch */ color: oklch(95.8% 0.145 107.2);
Tailwind
colors: {
  custom: {
    50: '#fffaa6',
    500: '#fcf87d',
    950: '#000000',
  },
}
SCSS
$custom: #fcf87d;
$custom-light: #fffaa6;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf87d",
  "rgb": {
    "r": 252,
    "g": 248,
    "b": 125
  },
  "hsl": {
    "h": 58.11,
    "s": 95.489,
    "l": 73.922
  },
  "oklch": {
    "l": 0.95797,
    "c": 0.1451,
    "h": 107.2
  },
  "luminance": 0.89311
}

Semantic roles & 50–950 ramp

primary
#FCF87D
secondary
#4348DA
accent
#07E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#181710
muted
#868580

Preview Lab

Preview with #FCF87D

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

Preview Lab → · Contrast checker → · Palette generator →

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