#FEF27A#FEF27A

#FEF27A is a very light, vivid yellow. Relative luminance 0.860; OKLCH L 94.7% C 0.142 H 103.6°. Best body text is #000000 at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#FEF27A
RGBrgb(254, 242, 122)
HSLhsl(55, 99%, 74%)
HSVhsv(55, 52%, 100%)
CMYKcmyk(0%, 4.7%, 52%, 0.4%)
CIE-LABlab(94.31, -11.08, 58.62)
CIE-LCHlch(94.31, 59.66, 100.71°)
OKLaboklab(94.71% -0.0333 0.1378)
OKLCHoklch(94.71% 0.142 103.6)
XYZxyz(76.1403, 85.9827, 30.9941)
Luminance0.8598 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF27A #7A86FE
analogous
#FEB07A #FEF27A #C8FE7A
triadic
#FEF27A #7AFEF2 #F27AFE
tetradic
#FEF27A #7AFEB0 #7A86FE #FE7AC8
square
#FEF27A #7AFEB0 #7A86FE #FE7AC8
split-complementary
#FEF27A #7AC8FE #B07AFE
monochromatic
#FCE502 #FEEC3D #FEF27A #FEF8B7 #FFFCE1

Accessibility & contrast

On white

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

On black

18.20
#FEF27A on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF27A
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF27A#FFFFFF#000000##000000
##FEF27A1.001.1518.2018.20
#FFFFFF1.151.0021.0021.00
#00000018.2021.001.001.00
##00000018.2021.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef27a;
/* rgb */ color: rgb(254, 242, 122);
/* oklch */ color: oklch(94.7% 0.142 103.6);
Tailwind
colors: {
  custom: {
    50: '#fff6a3',
    500: '#fef27a',
    950: '#000000',
  },
}
SCSS
$custom: #fef27a;
$custom-light: #fff6a3;
$custom-dark: #000000;
JSON
{
  "hex": "#fef27a",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 122
  },
  "hsl": {
    "h": 54.545,
    "s": 98.507,
    "l": 73.725
  },
  "oklch": {
    "l": 0.94707,
    "c": 0.14175,
    "h": 103.6
  },
  "luminance": 0.8598
}

Semantic roles & 50–950 ramp

primary
#FEF27A
secondary
#404EDC
accent
#15E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF27A

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

Preview Lab → · Contrast checker → · Palette generator →

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