#FEF2AF#FEF2AF

#FEF2AF is a very light, moderate yellow. Relative luminance 0.877; OKLCH L 95.5% C 0.086 H 99.2°. Best body text is #000000 at 18.53:1 contrast (WCAG AA passes).

Color values

HEX#FEF2AF
RGBrgb(254, 242, 175)
HSLhsl(51, 98%, 84%)
HSVhsv(51, 31%, 100%)
CMYKcmyk(0%, 4.7%, 31.1%, 0.4%)
CIE-LABlab(95.02, -5.75, 33.86)
CIE-LCHlch(95.02, 34.34, 99.63°)
OKLaboklab(95.51% -0.0137 0.0846)
OKLCHoklch(95.51% 0.086 99.2)
XYZxyz(80.3638, 87.6721, 53.2382)
Luminance0.8767 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF2AF #AFBBFE
analogous
#FECBAF #FEF2AF #E3FEAF
triadic
#FEF2AF #AFFEF2 #F2AFFE
tetradic
#FEF2AF #AFFECB #AFBBFE #FEAFE3
square
#FEF2AF #AFFECB #AFBBFE #FEAFE3
split-complementary
#FEF2AF #AFE3FE #CBAFFE
monochromatic
#FCDE36 #FDE873 #FEF2AF #FFFAE1 #FFFAE1

Accessibility & contrast

On white

1.13
#FEF2AF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.53
#FEF2AF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF2AF
18.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF2AF#FFFFFF#000000##000000
##FEF2AF1.001.1318.5318.53
#FFFFFF1.131.0021.0021.00
#00000018.5321.001.001.00
##00000018.5321.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEEAA
Deuteranopia (green-blind)
#FFF3B1
Tritanopia (blue-blind)
#FFE9E0
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef2af;
/* rgb */ color: rgb(254, 242, 175);
/* oklch */ color: oklch(95.5% 0.086 99.2);
Tailwind
colors: {
  custom: {
    50: '#fff6c7',
    500: '#fef2af',
    950: '#000000',
  },
}
SCSS
$custom: #fef2af;
$custom-light: #fff6c7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef2af",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 175
  },
  "hsl": {
    "h": 50.886,
    "s": 97.531,
    "l": 84.118
  },
  "oklch": {
    "l": 0.9551,
    "c": 0.08572,
    "h": 99.2
  },
  "luminance": 0.8767
}

Semantic roles & 50–950 ramp

primary
#FEF2AF
secondary
#6E80E4
accent
#23E600
background
#FFFFFD
surface
#FFFEF9
border
#D7D6D2
text
#181713
muted
#868582

Preview Lab

Preview with #FEF2AF

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

Preview Lab → · Contrast checker → · Palette generator →

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