#FEF27B#FEF27B

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

Color values

HEX#FEF27B
RGBrgb(254, 242, 123)
HSLhsl(55, 98%, 74%)
HSVhsv(55, 52%, 100%)
CMYKcmyk(0%, 4.7%, 51.6%, 0.4%)
CIE-LABlab(94.32, -11.00, 58.17)
CIE-LCHlch(94.32, 59.20, 100.71°)
OKLaboklab(94.72% -0.0329 0.1369)
OKLCHoklch(94.72% 0.141 103.5)
XYZxyz(76.2026, 86.0076, 31.3221)
Luminance0.8600 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF27B #7B87FE
analogous
#FEB17B #FEF27B #C9FE7B
triadic
#FEF27B #7BFEF2 #F27BFE
tetradic
#FEF27B #7BFEB1 #7B87FE #FE7BC9
square
#FEF27B #7BFEB1 #7B87FE #FE7BC9
split-complementary
#FEF27B #7BC9FE #B17BFE
monochromatic
#FDE602 #FEEC3E #FEF27B #FEF8B8 #FFFCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF27B#FFFFFF#000000##000000
##FEF27B1.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)
#FFEB70
Deuteranopia (green-blind)
#FFF281
Tritanopia (blue-blind)
#FFE4D7
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef27b;
/* rgb */ color: rgb(254, 242, 123);
/* oklch */ color: oklch(94.7% 0.141 103.5);
Tailwind
colors: {
  custom: {
    50: '#fff6a4',
    500: '#fef27b',
    950: '#000000',
  },
}
SCSS
$custom: #fef27b;
$custom-light: #fff6a4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef27b",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 123
  },
  "hsl": {
    "h": 54.504,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.94719,
    "c": 0.14083,
    "h": 103.5
  },
  "luminance": 0.86005
}

Semantic roles & 50–950 ramp

primary
#FEF27B
secondary
#414FDC
accent
#15E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF27B

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

Preview Lab → · Contrast checker → · Palette generator →

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