#FCF781#FCF781

#FCF781 is a very light, vivid yellow. Relative luminance 0.888; OKLCH L 95.6% C 0.140 H 106.6°. Best body text is #000000 at 18.76:1 contrast (WCAG AA passes).

Color values

HEX#FCF781
RGBrgb(252, 247, 129)
HSLhsl(58, 95%, 75%)
HSVhsv(58, 49%, 99%)
CMYKcmyk(0%, 2%, 48.8%, 1.2%)
CIE-LABlab(95.50, -13.74, 56.78)
CIE-LCHlch(95.50, 58.42, 103.61°)
OKLaboklab(95.64% -0.0401 0.1344)
OKLCHoklch(95.64% 0.14 106.6)
XYZxyz(77.3700, 88.8041, 33.8299)
Luminance0.8880 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF781 #8186FC
analogous
#FCBA81 #FCF781 #C4FC81
triadic
#FCF781 #81FCF7 #F781FC
tetradic
#FCF781 #81FCBA #8186FC #FC81C4
square
#FCF781 #81FCBA #8186FC #FC81C4
split-complementary
#FCF781 #81C4FC #BA81FC
monochromatic
#F9EF09 #FBF345 #FCF781 #FDFBBD #FEFDE1

Accessibility & contrast

On white

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

On black

18.76
#FCF781 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF781
18.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF781#FFFFFF#000000##000000
##FCF7811.001.1218.7618.76
#FFFFFF1.121.0021.0021.00
#00000018.7621.001.001.00
##00000018.7621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF76
Deuteranopia (green-blind)
#FFF487
Tritanopia (blue-blind)
#FFEADC
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fcf781;
/* rgb */ color: rgb(252, 247, 129);
/* oklch */ color: oklch(95.6% 0.140 106.6);
Tailwind
colors: {
  custom: {
    50: '#fff9a8',
    500: '#fcf781',
    950: '#000000',
  },
}
SCSS
$custom: #fcf781;
$custom-light: #fff9a8;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf781",
  "rgb": {
    "r": 252,
    "g": 247,
    "b": 129
  },
  "hsl": {
    "h": 57.561,
    "s": 95.349,
    "l": 74.706
  },
  "oklch": {
    "l": 0.95642,
    "c": 0.14028,
    "h": 106.6
  },
  "luminance": 0.88802
}

Semantic roles & 50–950 ramp

primary
#FCF781
secondary
#474DDA
accent
#09E600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FCF781

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

Preview Lab → · Contrast checker → · Palette generator →

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