#FCF786#FCF786

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

Color values

HEX#FCF786
RGBrgb(252, 247, 134)
HSLhsl(57, 95%, 76%)
HSVhsv(57, 47%, 99%)
CMYKcmyk(0%, 2%, 46.8%, 1.2%)
CIE-LABlab(95.56, -13.30, 54.52)
CIE-LCHlch(95.56, 56.12, 103.71°)
OKLaboklab(95.71% -0.0383 0.1299)
OKLCHoklch(95.71% 0.135 106.4)
XYZxyz(77.7105, 88.9403, 35.6232)
Luminance0.8894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF786 #868BFC
analogous
#FCBC86 #FCF786 #C6FC86
triadic
#FCF786 #86FCF7 #F786FC
tetradic
#FCF786 #86FCBC #868BFC #FC86C6
square
#FCF786 #86FCBC #868BFC #FC86C6
split-complementary
#FCF786 #86C6FC #BC86FC
monochromatic
#F9EF0F #FBF34A #FCF786 #FDFBC2 #FEFDE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FCF786#FFFFFF#000000##000000
##FCF7861.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)
#FFEF7C
Deuteranopia (green-blind)
#FFF58B
Tritanopia (blue-blind)
#FFEADD
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fcf786;
/* rgb */ color: rgb(252, 247, 134);
/* oklch */ color: oklch(95.7% 0.135 106.4);
Tailwind
colors: {
  custom: {
    50: '#fff9ab',
    500: '#fcf786',
    950: '#000000',
  },
}
SCSS
$custom: #fcf786;
$custom-light: #fff9ab;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf786",
  "rgb": {
    "r": 252,
    "g": 247,
    "b": 134
  },
  "hsl": {
    "h": 57.458,
    "s": 95.161,
    "l": 75.686
  },
  "oklch": {
    "l": 0.95706,
    "c": 0.13543,
    "h": 106.4
  },
  "luminance": 0.88938
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FCF786

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

Preview Lab → · Contrast checker → · Palette generator →

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