#FEF68C#FEF68C

#FEF68C is a very light, vivid yellow. Relative luminance 0.889; OKLCH L 95.7% C 0.128 H 104.8°. Best body text is #000000 at 18.78:1 contrast (WCAG AA passes).

Color values

HEX#FEF68C
RGBrgb(254, 246, 140)
HSLhsl(56, 98%, 77%)
HSVhsv(56, 45%, 100%)
CMYKcmyk(0%, 3.1%, 44.9%, 0.4%)
CIE-LABlab(95.53, -11.49, 51.70)
CIE-LCHlch(95.53, 52.96, 102.53°)
OKLaboklab(95.75% -0.0327 0.1241)
OKLCHoklch(95.75% 0.128 104.8)
XYZxyz(78.5642, 88.8780, 37.8225)
Luminance0.8888 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF68C #8C94FE
analogous
#FEBD8C #FEF68C #CDFE8C
triadic
#FEF68C #8CFEF6 #F68CFE
tetradic
#FEF68C #8CFEBD #8C94FE #FE8CCD
square
#FEF68C #8CFEBD #8C94FE #FE8CCD
split-complementary
#FEF68C #8CCDFE #BD8CFE
monochromatic
#FDED13 #FDF14F #FEF68C #FFFBC9 #FFFDE1

Accessibility & contrast

On white

1.12
#FEF68C on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.78
#FEF68C on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF68C
18.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF68C#FFFFFF#000000##000000
##FEF68C1.001.1218.7818.78
#FFFFFF1.121.0021.0021.00
#00000018.7821.001.001.00
##00000018.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEF83
Deuteranopia (green-blind)
#FFF591
Tritanopia (blue-blind)
#FFEADD
Achromatopsia (no color)
#F2F2F2

Design tokens & code

CSS
--color: #fef68c;
/* rgb */ color: rgb(254, 246, 140);
/* oklch */ color: oklch(95.7% 0.128 104.8);
Tailwind
colors: {
  custom: {
    50: '#fff9af',
    500: '#fef68c',
    950: '#000000',
  },
}
SCSS
$custom: #fef68c;
$custom-light: #fff9af;
$custom-dark: #000000;
JSON
{
  "hex": "#fef68c",
  "rgb": {
    "r": 254,
    "g": 246,
    "b": 140
  },
  "hsl": {
    "h": 55.789,
    "s": 98.276,
    "l": 77.255
  },
  "oklch": {
    "l": 0.95747,
    "c": 0.12828,
    "h": 104.8
  },
  "luminance": 0.88876
}

Semantic roles & 50–950 ramp

primary
#FEF68C
secondary
#505ADF
accent
#10E600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581

Preview Lab

Preview with #FEF68C

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

Preview Lab → · Contrast checker → · Palette generator →

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