#FCF397#FCF397

#FCF397 is a very light, moderate yellow. Relative luminance 0.870; OKLCH L 95.1% C 0.114 H 103.5°. Best body text is #000000 at 18.41:1 contrast (WCAG AA passes).

Color values

HEX#FCF397
RGBrgb(252, 243, 151)
HSLhsl(55, 94%, 79%)
HSVhsv(55, 40%, 99%)
CMYKcmyk(0%, 3.6%, 40.1%, 1.2%)
CIE-LABlab(94.75, -9.70, 45.39)
CIE-LCHlch(94.75, 46.42, 102.06°)
OKLaboklab(95.14% -0.0265 0.1105)
OKLCHoklch(95.14% 0.114 103.5)
XYZxyz(77.7828, 87.0330, 41.9738)
Luminance0.8703 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FCF397 #97A0FC
analogous
#FCC197 #FCF397 #D3FC97
triadic
#FCF397 #97FCF3 #F397FC
tetradic
#FCF397 #97FCC1 #97A0FC #FC97D3
square
#FCF397 #97FCC1 #97A0FC #FC97D3
split-complementary
#FCF397 #97D3FC #C197FC
monochromatic
#F9E520 #FAEC5C #FCF397 #FEFAD2 #FEFCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FCF397#FFFFFF#000000##000000
##FCF3971.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)
#FFED90
Deuteranopia (green-blind)
#FFF29B
Tritanopia (blue-blind)
#FFE8DC
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fcf397;
/* rgb */ color: rgb(252, 243, 151);
/* oklch */ color: oklch(95.1% 0.114 103.5);
Tailwind
colors: {
  custom: {
    50: '#fff6b7',
    500: '#fcf397',
    950: '#000000',
  },
}
SCSS
$custom: #fcf397;
$custom-light: #fff6b7;
$custom-dark: #000000;
JSON
{
  "hex": "#fcf397",
  "rgb": {
    "r": 252,
    "g": 243,
    "b": 151
  },
  "hsl": {
    "h": 54.653,
    "s": 94.393,
    "l": 79.02
  },
  "oklch": {
    "l": 0.95138,
    "c": 0.11366,
    "h": 103.5
  },
  "luminance": 0.87031
}

Semantic roles & 50–950 ramp

primary
#FCF397
secondary
#5A66DD
accent
#14E600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FCF397

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

Preview Lab → · Contrast checker → · Palette generator →

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