#FCF28D#FCF28D

#FCF28D is a very light, vivid yellow. Relative luminance 0.861; OKLCH L 94.8% C 0.123 H 103.5°. Best body text is #000000 at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#FCF28D
RGBrgb(252, 242, 141)
HSLhsl(55, 95%, 77%)
HSVhsv(55, 44%, 99%)
CMYKcmyk(0%, 4%, 44%, 1.2%)
CIE-LABlab(94.37, -10.20, 49.75)
CIE-LCHlch(94.37, 50.78, 101.59°)
OKLaboklab(94.79% -0.0288 0.1198)
OKLCHoklch(94.79% 0.123 103.5)
XYZxyz(76.7064, 86.1250, 37.7773)
Luminance0.8612 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF28D #8D97FC
analogous
#FCBB8D #FCF28D #CEFC8D
triadic
#FCF28D #8DFCF2 #F28DFC
tetradic
#FCF28D #8DFCBB #8D97FC #FC8DCE
square
#FCF28D #8DFCBB #8D97FC #FC8DCE
split-complementary
#FCF28D #8DCEFC #BB8DFC
monochromatic
#F9E416 #FAEB51 #FCF28D #FEF9C9 #FEFCE1

Accessibility & contrast

On white

1.15
#FCF28D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.22
#FCF28D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF28D
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF28D#FFFFFF#000000##000000
##FCF28D1.001.1518.2218.22
#FFFFFF1.151.0021.0021.00
#00000018.2221.001.001.00
##00000018.2221.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC85
Deuteranopia (green-blind)
#FFF191
Tritanopia (blue-blind)
#FFE6DA
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fcf28d;
/* rgb */ color: rgb(252, 242, 141);
/* oklch */ color: oklch(94.8% 0.123 103.5);
Tailwind
colors: {
  custom: {
    50: '#fff6b0',
    500: '#fcf28d',
    950: '#000000',
  },
}
SCSS
$custom: #fcf28d;
$custom-light: #fff6b0;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf28d",
  "rgb": {
    "r": 252,
    "g": 242,
    "b": 141
  },
  "hsl": {
    "h": 54.595,
    "s": 94.872,
    "l": 77.059
  },
  "oklch": {
    "l": 0.94789,
    "c": 0.12319,
    "h": 103.5
  },
  "luminance": 0.86123
}

Semantic roles & 50–950 ramp

primary
#FCF28D
secondary
#515EDC
accent
#15E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181711
muted
#868581

Preview Lab

Preview with #FCF28D

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

Preview Lab → · Contrast checker → · Palette generator →

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