#FCF87F#FCF87F

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

Color values

HEX#FCF87F
RGBrgb(252, 248, 127)
HSLhsl(58, 95%, 74%)
HSVhsv(58, 50%, 99%)
CMYKcmyk(0%, 1.6%, 49.6%, 1.2%)
CIE-LABlab(95.73, -14.40, 57.98)
CIE-LCHlch(95.73, 59.74, 103.95°)
OKLaboklab(95.82% -0.0421 0.1369)
OKLCHoklch(95.82% 0.143 107.1)
XYZxyz(77.5450, 89.3646, 33.2388)
Luminance0.8936 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF87F #7F83FC
analogous
#FCBA7F #FCF87F #C2FC7F
triadic
#FCF87F #7FFCF8 #F87FFC
tetradic
#FCF87F #7FFCBA #7F83FC #FC7FC2
square
#FCF87F #7FFCBA #7F83FC #FC7FC2
split-complementary
#FCF87F #7FC2FC #BA7FFC
monochromatic
#F9F107 #FBF543 #FCF87F #FDFBBB #FEFDE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FCF87F#FFFFFF#000000##000000
##FCF87F1.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)
#FFF074
Deuteranopia (green-blind)
#FFF585
Tritanopia (blue-blind)
#FFEBDC
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fcf87f;
/* rgb */ color: rgb(252, 248, 127);
/* oklch */ color: oklch(95.8% 0.143 107.1);
Tailwind
colors: {
  custom: {
    50: '#fffaa7',
    500: '#fcf87f',
    950: '#000000',
  },
}
SCSS
$custom: #fcf87f;
$custom-light: #fffaa7;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf87f",
  "rgb": {
    "r": 252,
    "g": 248,
    "b": 127
  },
  "hsl": {
    "h": 58.08,
    "s": 95.42,
    "l": 74.314
  },
  "oklch": {
    "l": 0.95821,
    "c": 0.14322,
    "h": 107.1
  },
  "luminance": 0.89363
}

Semantic roles & 50–950 ramp

primary
#FCF87F
secondary
#454ADA
accent
#07E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#181710
muted
#868580

Preview Lab

Preview with #FCF87F

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

Preview Lab → · Contrast checker → · Palette generator →

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