#FCF787#FCF787

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

Color values

HEX#FCF787
RGBrgb(252, 247, 135)
HSLhsl(57, 95%, 76%)
HSVhsv(57, 46%, 99%)
CMYKcmyk(0%, 2%, 46.4%, 1.2%)
CIE-LABlab(95.57, -13.21, 54.07)
CIE-LCHlch(95.57, 55.66, 103.73°)
OKLaboklab(95.72% -0.038 0.129)
OKLCHoklch(95.72% 0.134 106.4)
XYZxyz(77.7806, 88.9683, 35.9923)
Luminance0.8897 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF787 #878CFC
analogous
#FCBC87 #FCF787 #C6FC87
triadic
#FCF787 #87FCF7 #F787FC
tetradic
#FCF787 #87FCBC #878CFC #FC87C6
square
#FCF787 #87FCBC #878CFC #FC87C6
split-complementary
#FCF787 #87C6FC #BC87FC
monochromatic
#F9EF10 #FBF34B #FCF787 #FDFBC3 #FEFDE1

Accessibility & contrast

On white

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

On black

18.79
#FCF787 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF787
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF787#FFFFFF#000000##000000
##FCF7871.001.1218.7918.79
#FFFFFF1.121.0021.0021.00
#00000018.7921.001.001.00
##00000018.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF7D
Deuteranopia (green-blind)
#FFF58C
Tritanopia (blue-blind)
#FFEADD
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fcf787;
/* rgb */ color: rgb(252, 247, 135);
/* oklch */ color: oklch(95.7% 0.134 106.4);
Tailwind
colors: {
  custom: {
    50: '#fff9ac',
    500: '#fcf787',
    950: '#000000',
  },
}
SCSS
$custom: #fcf787;
$custom-light: #fff9ac;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf787",
  "rgb": {
    "r": 252,
    "g": 247,
    "b": 135
  },
  "hsl": {
    "h": 57.436,
    "s": 95.122,
    "l": 75.882
  },
  "oklch": {
    "l": 0.95719,
    "c": 0.13445,
    "h": 106.4
  },
  "luminance": 0.88966
}

Semantic roles & 50–950 ramp

primary
#FCF787
secondary
#4C52DB
accent
#0AE600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FCF787

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

Preview Lab → · Contrast checker → · Palette generator →

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