#FCF871#FCF871

#FCF871 is a very light, vivid yellow. Relative luminance 0.890; OKLCH L 95.7% C 0.156 H 107.4°. Best body text is #000000 at 18.80:1 contrast (WCAG AA passes).

Color values

HEX#FCF871
RGBrgb(252, 248, 113)
HSLhsl(58, 96%, 72%)
HSVhsv(58, 55%, 99%)
CMYKcmyk(0%, 1.6%, 55.2%, 1.2%)
CIE-LABlab(95.59, -15.50, 64.07)
CIE-LCHlch(95.59, 65.92, 103.60°)
OKLaboklab(95.66% -0.0467 0.1487)
OKLCHoklch(95.66% 0.156 107.4)
XYZxyz(76.6951, 89.0247, 28.7630)
Luminance0.8902 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF871 #7175FC
analogous
#FCB371 #FCF871 #BBFC71
triadic
#FCF871 #71FCF8 #F871FC
tetradic
#FCF871 #71FCB3 #7175FC #FC71BB
square
#FCF871 #71FCB3 #7175FC #FC71BB
split-complementary
#FCF871 #71BBFC #B371FC
monochromatic
#EEE705 #FBF535 #FCF871 #FDFBAD #FEFEE1

Accessibility & contrast

On white

1.12
#FCF871 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.80
#FCF871 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF871
18.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF871#FFFFFF#000000##000000
##FCF8711.001.1218.8018.80
#FFFFFF1.121.0021.0021.00
#00000018.8021.001.001.00
##00000018.8021.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF63
Deuteranopia (green-blind)
#FFF578
Tritanopia (blue-blind)
#FFEADA
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fcf871;
/* rgb */ color: rgb(252, 248, 113);
/* oklch */ color: oklch(95.7% 0.156 107.4);
Tailwind
colors: {
  custom: {
    50: '#fffa9e',
    500: '#fcf871',
    950: '#000000',
  },
}
SCSS
$custom: #fcf871;
$custom-light: #fffa9e;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf871",
  "rgb": {
    "r": 252,
    "g": 248,
    "b": 113
  },
  "hsl": {
    "h": 58.273,
    "s": 95.862,
    "l": 71.569
  },
  "oklch": {
    "l": 0.95663,
    "c": 0.15583,
    "h": 107.4
  },
  "luminance": 0.89023
}

Semantic roles & 50–950 ramp

primary
#FCF871
secondary
#393ED8
accent
#07E600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FCF871

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

Preview Lab → · Contrast checker → · Palette generator →

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