#FEF7CA#FEF7CA

#FEF7CA is a very light, muted yellow. Relative luminance 0.919; OKLCH L 97.0% C 0.059 H 100.1°. Best body text is #000000 at 19.37:1 contrast (WCAG AA passes).

Color values

HEX#FEF7CA
RGBrgb(254, 247, 202)
HSLhsl(52, 96%, 89%)
HSVhsv(52, 20%, 100%)
CMYKcmyk(0%, 2.8%, 20.5%, 0.4%)
CIE-LABlab(96.76, -4.71, 22.52)
CIE-LCHlch(96.76, 23.01, 101.81°)
OKLaboklab(97.04% -0.0102 0.0576)
OKLCHoklch(97.04% 0.059 100.1)
XYZxyz(84.7942, 91.8579, 69.1291)
Luminance0.9186 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF7CA #CAD1FE
analogous
#FEDDCA #FEF7CA #EBFECA
triadic
#FEF7CA #CAFEF7 #F7CAFE
tetradic
#FEF7CA #CAFEDD #CAD1FE #FECAEB
square
#FEF7CA #CAFEDD #CAD1FE #FECAEB
split-complementary
#FEF7CA #CAEBFE #DDCAFE
monochromatic
#FCE552 #FDEE8E #FEF7CA #FEFAE1 #FEFAE1

Accessibility & contrast

On white

1.08
#FEF7CA on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.37
#FEF7CA on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF7CA
19.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF7CA#FFFFFF#000000##000000
##FEF7CA1.001.0819.3719.37
#FFFFFF1.081.0021.0021.00
#00000019.3721.001.001.00
##00000019.3721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF4C7
Deuteranopia (green-blind)
#FFF7CB
Tritanopia (blue-blind)
#FFF0EB
Achromatopsia (no color)
#F6F6F6

Design tokens & code

CSS
--color: #fef7ca;
/* rgb */ color: rgb(254, 247, 202);
/* oklch */ color: oklch(97.0% 0.059 100.1);
Tailwind
colors: {
  custom: {
    50: '#fff9da',
    500: '#fef7ca',
    950: '#000000',
  },
}
SCSS
$custom: #fef7ca;
$custom-light: #fff9da;
$custom-dark: #000000;
JSON
{
  "hex": "#fef7ca",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 202
  },
  "hsl": {
    "h": 51.923,
    "s": 96.296,
    "l": 89.412
  },
  "oklch": {
    "l": 0.97043,
    "c": 0.0585,
    "h": 100.1
  },
  "luminance": 0.91857
}

Semantic roles & 50–950 ramp

primary
#FEF7CA
secondary
#8592E7
accent
#1FE600
background
#FFFFFE
surface
#FFFFFB
border
#D7D7D4
text
#181714
muted
#868583

Preview Lab

Preview with #FEF7CA

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

Preview Lab → · Contrast checker → · Palette generator →

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