#FCF28F#FCF28F

#FCF28F is a very light, vivid yellow. Relative luminance 0.862; OKLCH L 94.8% C 0.121 H 103.4°. Best body text is #000000 at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#FCF28F
RGBrgb(252, 242, 143)
HSLhsl(54, 95%, 77%)
HSVhsv(54, 43%, 99%)
CMYKcmyk(0%, 4%, 43.3%, 1.2%)
CIE-LABlab(94.39, -10.01, 48.82)
CIE-LCHlch(94.39, 49.84, 101.58°)
OKLaboklab(94.82% -0.028 0.1178)
OKLCHoklch(94.82% 0.121 103.4)
XYZxyz(76.8566, 86.1850, 38.5681)
Luminance0.8618 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF28F #8F99FC
analogous
#FCBB8F #FCF28F #D0FC8F
triadic
#FCF28F #8FFCF2 #F28FFC
tetradic
#FCF28F #8FFCBB #8F99FC #FC8FD0
square
#FCF28F #8FFCBB #8F99FC #FC8FD0
split-complementary
#FCF28F #8FD0FC #BB8FFC
monochromatic
#F9E418 #FAEB53 #FCF28F #FEF9CB #FEFCE1

Accessibility & contrast

On white

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

On black

18.24
#FCF28F on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF28F
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF28F#FFFFFF#000000##000000
##FCF28F1.001.1518.2418.24
#FFFFFF1.151.0021.0021.00
#00000018.2421.001.001.00
##00000018.2421.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fcf28f;
/* rgb */ color: rgb(252, 242, 143);
/* oklch */ color: oklch(94.8% 0.121 103.4);
Tailwind
colors: {
  custom: {
    50: '#fff6b1',
    500: '#fcf28f',
    950: '#000000',
  },
}
SCSS
$custom: #fcf28f;
$custom-light: #fff6b1;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf28f",
  "rgb": {
    "r": 252,
    "g": 242,
    "b": 143
  },
  "hsl": {
    "h": 54.495,
    "s": 94.783,
    "l": 77.451
  },
  "oklch": {
    "l": 0.94817,
    "c": 0.12112,
    "h": 103.4
  },
  "luminance": 0.86183
}

Semantic roles & 50–950 ramp

primary
#FCF28F
secondary
#5360DC
accent
#15E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FCF28F

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

Preview Lab → · Contrast checker → · Palette generator →

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