#FCF8A2#FCF8A2

#FCF8A2 is a very light, moderate yellow. Relative luminance 0.904; OKLCH L 96.3% C 0.107 H 106.0°. Best body text is #000000 at 19.09:1 contrast (WCAG AA passes).

Color values

HEX#FCF8A2
RGBrgb(252, 248, 162)
HSLhsl(57, 94%, 81%)
HSVhsv(57, 36%, 99%)
CMYKcmyk(0%, 1.6%, 35.7%, 1.2%)
CIE-LABlab(96.18, -10.98, 41.83)
CIE-LCHlch(96.18, 43.25, 104.71°)
OKLaboklab(96.32% -0.0294 0.1029)
OKLCHoklch(96.32% 0.107 106)
XYZxyz(80.2349, 90.4406, 47.4056)
Luminance0.9044 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF8A2 #A2A6FC
analogous
#FCCBA2 #FCF8A2 #D3FCA2
triadic
#FCF8A2 #A2FCF8 #F8A2FC
tetradic
#FCF8A2 #A2FCCB #A2A6FC #FCA2D3
square
#FCF8A2 #A2FCCB #A2A6FC #FCA2D3
split-complementary
#FCF8A2 #A2D3FC #CBA2FC
monochromatic
#F8EF2B #FAF467 #FCF8A2 #FEFCDD #FEFDE1

Accessibility & contrast

On white

1.10
#FCF8A2 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.09
#FCF8A2 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF8A2
19.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF8A2#FFFFFF#000000##000000
##FCF8A21.001.1019.0919.09
#FFFFFF1.101.0021.0021.00
#00000019.0921.001.001.00
##00000019.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF29C
Deuteranopia (green-blind)
#FFF6A6
Tritanopia (blue-blind)
#FFEDE2
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fcf8a2;
/* rgb */ color: rgb(252, 248, 162);
/* oklch */ color: oklch(96.3% 0.107 106.0);
Tailwind
colors: {
  custom: {
    50: '#fefabe',
    500: '#fcf8a2',
    950: '#000000',
  },
}
SCSS
$custom: #fcf8a2;
$custom-light: #fefabe;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf8a2",
  "rgb": {
    "r": 252,
    "g": 248,
    "b": 162
  },
  "hsl": {
    "h": 57.333,
    "s": 93.75,
    "l": 81.176
  },
  "oklch": {
    "l": 0.96321,
    "c": 0.10698,
    "h": 106
  },
  "luminance": 0.90439
}

Semantic roles & 50–950 ramp

primary
#FCF8A2
secondary
#6369DF
accent
#0AE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181712
muted
#868582

Preview Lab

Preview with #FCF8A2

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

Preview Lab → · Contrast checker → · Palette generator →

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