#FCF28B#FCF28B

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

Color values

HEX#FCF28B
RGBrgb(252, 242, 139)
HSLhsl(55, 95%, 77%)
HSVhsv(55, 45%, 99%)
CMYKcmyk(0%, 4%, 44.8%, 1.2%)
CIE-LABlab(94.34, -10.39, 50.68)
CIE-LCHlch(94.34, 51.73, 101.58°)
OKLaboklab(94.76% -0.0295 0.1217)
OKLCHoklch(94.76% 0.125 103.6)
XYZxyz(76.5590, 86.0660, 37.0006)
Luminance0.8606 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF28B #8B95FC
analogous
#FCBA8B #FCF28B #CEFC8B
triadic
#FCF28B #8BFCF2 #F28BFC
tetradic
#FCF28B #8BFCBA #8B95FC #FC8BCE
square
#FCF28B #8BFCBA #8B95FC #FC8BCE
split-complementary
#FCF28B #8BCEFC #BA8BFC
monochromatic
#F9E514 #FAEB4F #FCF28B #FEF9C7 #FEFCE1

Accessibility & contrast

On white

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

On black

18.21
#FCF28B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF28B
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF28B#FFFFFF#000000##000000
##FCF28B1.001.1518.2118.21
#FFFFFF1.151.0021.0021.00
#00000018.2121.001.001.00
##00000018.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC83
Deuteranopia (green-blind)
#FFF18F
Tritanopia (blue-blind)
#FFE6D9
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fcf28b;
/* rgb */ color: rgb(252, 242, 139);
/* oklch */ color: oklch(94.8% 0.125 103.6);
Tailwind
colors: {
  custom: {
    50: '#fff6af',
    500: '#fcf28b',
    950: '#000000',
  },
}
SCSS
$custom: #fcf28b;
$custom-light: #fff6af;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf28b",
  "rgb": {
    "r": 252,
    "g": 242,
    "b": 139
  },
  "hsl": {
    "h": 54.69,
    "s": 94.958,
    "l": 76.667
  },
  "oklch": {
    "l": 0.9476,
    "c": 0.12524,
    "h": 103.6
  },
  "luminance": 0.86064
}

Semantic roles & 50–950 ramp

primary
#FCF28B
secondary
#505CDC
accent
#14E600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581

Preview Lab

Preview with #FCF28B

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

Preview Lab → · Contrast checker → · Palette generator →

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