#FCF87C#FCF87C

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

Color values

HEX#FCF87C
RGBrgb(252, 248, 124)
HSLhsl(58, 96%, 74%)
HSVhsv(58, 51%, 99%)
CMYKcmyk(0%, 1.6%, 50.8%, 1.2%)
CIE-LABlab(95.70, -14.65, 59.30)
CIE-LCHlch(95.70, 61.09, 103.87°)
OKLaboklab(95.79% -0.0431 0.1395)
OKLCHoklch(95.79% 0.146 107.2)
XYZxyz(77.3524, 89.2876, 32.2244)
Luminance0.8929 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF87C #7C80FC
analogous
#FCB87C #FCF87C #C0FC7C
triadic
#FCF87C #7CFCF8 #F87CFC
tetradic
#FCF87C #7CFCB8 #7C80FC #FC7CC0
square
#FCF87C #7CFCB8 #7C80FC #FC7CC0
split-complementary
#FCF87C #7CC0FC #B87CFC
monochromatic
#F8F006 #FBF540 #FCF87C #FDFBB8 #FEFDE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FCF87C#FFFFFF#000000##000000
##FCF87C1.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)
#FFF070
Deuteranopia (green-blind)
#FFF582
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fcf87c;
/* rgb */ color: rgb(252, 248, 124);
/* oklch */ color: oklch(95.8% 0.146 107.2);
Tailwind
colors: {
  custom: {
    50: '#fffaa5',
    500: '#fcf87c',
    950: '#000000',
  },
}
SCSS
$custom: #fcf87c;
$custom-light: #fffaa5;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf87c",
  "rgb": {
    "r": 252,
    "g": 248,
    "b": 124
  },
  "hsl": {
    "h": 58.125,
    "s": 95.522,
    "l": 73.725
  },
  "oklch": {
    "l": 0.95785,
    "c": 0.14602,
    "h": 107.2
  },
  "luminance": 0.89285
}

Semantic roles & 50–950 ramp

primary
#FCF87C
secondary
#4347DA
accent
#07E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FCF87C

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

Preview Lab → · Contrast checker → · Palette generator →

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