#FCF87E#FCF87E

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

Color values

HEX#FCF87E
RGBrgb(252, 248, 126)
HSLhsl(58, 95%, 74%)
HSVhsv(58, 50%, 99%)
CMYKcmyk(0%, 1.6%, 50%, 1.2%)
CIE-LABlab(95.72, -14.48, 58.42)
CIE-LCHlch(95.72, 60.19, 103.92°)
OKLaboklab(95.81% -0.0425 0.1378)
OKLCHoklch(95.81% 0.144 107.1)
XYZxyz(77.4801, 89.3387, 32.8973)
Luminance0.8934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF87E #7E82FC
analogous
#FCB97E #FCF87E #C1FC7E
triadic
#FCF87E #7EFCF8 #F87EFC
tetradic
#FCF87E #7EFCB9 #7E82FC #FC7EC1
square
#FCF87E #7EFCB9 #7E82FC #FC7EC1
split-complementary
#FCF87E #7EC1FC #B97EFC
monochromatic
#F9F206 #FBF542 #FCF87E #FDFBBA #FEFDE1

Accessibility & contrast

On white

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

On black

18.87
#FCF87E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF87E
18.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF87E#FFFFFF#000000##000000
##FCF87E1.001.1118.8718.87
#FFFFFF1.111.0021.0021.00
#00000018.8721.001.001.00
##00000018.8721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fcf87e;
/* rgb */ color: rgb(252, 248, 126);
/* oklch */ color: oklch(95.8% 0.144 107.1);
Tailwind
colors: {
  custom: {
    50: '#fffaa6',
    500: '#fcf87e',
    950: '#000000',
  },
}
SCSS
$custom: #fcf87e;
$custom-light: #fffaa6;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf87e",
  "rgb": {
    "r": 252,
    "g": 248,
    "b": 126
  },
  "hsl": {
    "h": 58.095,
    "s": 95.455,
    "l": 74.118
  },
  "oklch": {
    "l": 0.95809,
    "c": 0.14416,
    "h": 107.1
  },
  "luminance": 0.89337
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FCF87E

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

Preview Lab → · Contrast checker → · Palette generator →

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