#FCF398#FCF398

#FCF398 is a very light, moderate yellow. Relative luminance 0.871; OKLCH L 95.2% C 0.113 H 103.4°. Best body text is #000000 at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#FCF398
RGBrgb(252, 243, 152)
HSLhsl(55, 94%, 79%)
HSVhsv(55, 40%, 99%)
CMYKcmyk(0%, 3.6%, 39.7%, 1.2%)
CIE-LABlab(94.77, -9.59, 44.92)
CIE-LCHlch(94.77, 45.94, 102.05°)
OKLaboklab(95.15% -0.0261 0.1095)
OKLCHoklch(95.15% 0.113 103.4)
XYZxyz(77.8644, 87.0657, 42.4033)
Luminance0.8706 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF398 #98A1FC
analogous
#FCC198 #FCF398 #D3FC98
triadic
#FCF398 #98FCF3 #F398FC
tetradic
#FCF398 #98FCC1 #98A1FC #FC98D3
square
#FCF398 #98FCC1 #98A1FC #FC98D3
split-complementary
#FCF398 #98D3FC #C198FC
monochromatic
#F9E521 #FAEC5D #FCF398 #FEFAD3 #FEFCE1

Accessibility & contrast

On white

1.14
#FCF398 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.41
#FCF398 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FCF398
18.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FCF398#FFFFFF#000000##000000
##FCF3981.001.1418.4118.41
#FFFFFF1.141.0021.0021.00
#00000018.4121.001.001.00
##00000018.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFED91
Deuteranopia (green-blind)
#FFF29C
Tritanopia (blue-blind)
#FFE8DD
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fcf398;
/* rgb */ color: rgb(252, 243, 152);
/* oklch */ color: oklch(95.2% 0.113 103.4);
Tailwind
colors: {
  custom: {
    50: '#fff6b7',
    500: '#fcf398',
    950: '#000000',
  },
}
SCSS
$custom: #fcf398;
$custom-light: #fff6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf398",
  "rgb": {
    "r": 252,
    "g": 243,
    "b": 152
  },
  "hsl": {
    "h": 54.6,
    "s": 94.34,
    "l": 79.216
  },
  "oklch": {
    "l": 0.95154,
    "c": 0.11258,
    "h": 103.4
  },
  "luminance": 0.87064
}

Semantic roles & 50–950 ramp

primary
#FCF398
secondary
#5B67DD
accent
#15E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FCF398

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

Preview Lab → · Contrast checker → · Palette generator →

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