#FEF27E#FEF27E

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

Color values

HEX#FEF27E
RGBrgb(254, 242, 126)
HSLhsl(54, 98%, 75%)
HSVhsv(54, 50%, 100%)
CMYKcmyk(0%, 4.7%, 50.4%, 0.4%)
CIE-LABlab(94.35, -10.76, 56.83)
CIE-LCHlch(94.35, 57.84, 100.72°)
OKLaboklab(94.76% -0.0319 0.1343)
OKLCHoklch(94.76% 0.138 103.4)
XYZxyz(76.3932, 86.0839, 32.3264)
Luminance0.8608 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF27E #7E8AFE
analogous
#FEB27E #FEF27E #CAFE7E
triadic
#FEF27E #7EFEF2 #F27EFE
tetradic
#FEF27E #7EFEB2 #7E8AFE #FE7ECA
square
#FEF27E #7EFEB2 #7E8AFE #FE7ECA
split-complementary
#FEF27E #7ECAFE #B27EFE
monochromatic
#FDE605 #FEEC41 #FEF27E #FEF8BB #FFFCE1

Accessibility & contrast

On white

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

On black

18.22
#FEF27E on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF27E
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF27E#FFFFFF#000000##000000
##FEF27E1.001.1518.2218.22
#FFFFFF1.151.0021.0021.00
#00000018.2221.001.001.00
##00000018.2221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef27e;
/* rgb */ color: rgb(254, 242, 126);
/* oklch */ color: oklch(94.8% 0.138 103.4);
Tailwind
colors: {
  custom: {
    50: '#fff6a6',
    500: '#fef27e',
    950: '#000000',
  },
}
SCSS
$custom: #fef27e;
$custom-light: #fff6a6;
$custom-dark: #000000;
JSON
{
  "hex": "#fef27e",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 126
  },
  "hsl": {
    "h": 54.375,
    "s": 98.462,
    "l": 74.51
  },
  "oklch": {
    "l": 0.94756,
    "c": 0.13801,
    "h": 103.4
  },
  "luminance": 0.86081
}

Semantic roles & 50–950 ramp

primary
#FEF27E
secondary
#4452DD
accent
#16E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#181710
muted
#868580

Preview Lab

Preview with #FEF27E

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

Preview Lab → · Contrast checker → · Palette generator →

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