#FEF27F#FEF27F

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

Color values

HEX#FEF27F
RGBrgb(254, 242, 127)
HSLhsl(54, 98%, 75%)
HSVhsv(54, 50%, 100%)
CMYKcmyk(0%, 4.7%, 50%, 0.4%)
CIE-LABlab(94.36, -10.67, 56.38)
CIE-LCHlch(94.36, 57.39, 100.72°)
OKLaboklab(94.77% -0.0316 0.1334)
OKLCHoklch(94.77% 0.137 103.3)
XYZxyz(76.4581, 86.1098, 32.6679)
Luminance0.8611 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF27F #7F8BFE
analogous
#FEB37F #FEF27F #CAFE7F
triadic
#FEF27F #7FFEF2 #F27FFE
tetradic
#FEF27F #7FFEB3 #7F8BFE #FE7FCA
square
#FEF27F #7FFEB3 #7F8BFE #FE7FCA
split-complementary
#FEF27F #7FCAFE #B37FFE
monochromatic
#FDE606 #FEEC42 #FEF27F #FEF8BC #FFFCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF27F#FFFFFF#000000##000000
##FEF27F1.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)
#FFEB75
Deuteranopia (green-blind)
#FFF284
Tritanopia (blue-blind)
#FFE5D7
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef27f;
/* rgb */ color: rgb(254, 242, 127);
/* oklch */ color: oklch(94.8% 0.137 103.3);
Tailwind
colors: {
  custom: {
    50: '#fff6a7',
    500: '#fef27f',
    950: '#000000',
  },
}
SCSS
$custom: #fef27f;
$custom-light: #fff6a7;
$custom-dark: #000000;
JSON
{
  "hex": "#fef27f",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 127
  },
  "hsl": {
    "h": 54.331,
    "s": 98.45,
    "l": 74.706
  },
  "oklch": {
    "l": 0.94768,
    "c": 0.13707,
    "h": 103.3
  },
  "luminance": 0.86107
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF27F

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

Preview Lab → · Contrast checker → · Palette generator →

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