#FEF27D#FEF27D

#FEF27D is a very light, vivid yellow. Relative luminance 0.861; OKLCH L 94.7% C 0.139 H 103.4°. Best body text is #000000 at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#FEF27D
RGBrgb(254, 242, 125)
HSLhsl(54, 98%, 74%)
HSVhsv(54, 51%, 100%)
CMYKcmyk(0%, 4.7%, 50.8%, 0.4%)
CIE-LABlab(94.34, -10.84, 57.28)
CIE-LCHlch(94.34, 58.30, 100.72°)
OKLaboklab(94.74% -0.0323 0.1352)
OKLCHoklch(94.74% 0.139 103.4)
XYZxyz(76.3290, 86.0582, 31.9882)
Luminance0.8606 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF27D #7D89FE
analogous
#FEB27D #FEF27D #C9FE7D
triadic
#FEF27D #7DFEF2 #F27DFE
tetradic
#FEF27D #7DFEB2 #7D89FE #FE7DC9
square
#FEF27D #7DFEB2 #7D89FE #FE7DC9
split-complementary
#FEF27D #7DC9FE #B27DFE
monochromatic
#FDE604 #FEEC40 #FEF27D #FEF8BA #FFFCE1

Accessibility & contrast

On white

1.15
#FEF27D on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.21
#FEF27D on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF27D
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF27D#FFFFFF#000000##000000
##FEF27D1.001.1518.2118.21
#FFFFFF1.151.0021.0021.00
#00000018.2121.001.001.00
##00000018.2121.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB72
Deuteranopia (green-blind)
#FFF283
Tritanopia (blue-blind)
#FFE4D7
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef27d;
/* rgb */ color: rgb(254, 242, 125);
/* oklch */ color: oklch(94.7% 0.139 103.4);
Tailwind
colors: {
  custom: {
    50: '#fff6a5',
    500: '#fef27d',
    950: '#000000',
  },
}
SCSS
$custom: #fef27d;
$custom-light: #fff6a5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef27d",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 125
  },
  "hsl": {
    "h": 54.419,
    "s": 98.473,
    "l": 74.314
  },
  "oklch": {
    "l": 0.94743,
    "c": 0.13896,
    "h": 103.4
  },
  "luminance": 0.86056
}

Semantic roles & 50–950 ramp

primary
#FEF27D
secondary
#4351DC
accent
#15E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF27D

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

Preview Lab → · Contrast checker → · Palette generator →

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