#FEF277#FEF277

#FEF277 is a very light, vivid yellow. Relative luminance 0.859; OKLCH L 94.7% C 0.144 H 103.7°. Best body text is #000000 at 18.18:1 contrast (WCAG AA passes).

Color values

HEX#FEF277
RGBrgb(254, 242, 119)
HSLhsl(55, 99%, 73%)
HSVhsv(55, 53%, 100%)
CMYKcmyk(0%, 4.7%, 53.1%, 0.4%)
CIE-LABlab(94.27, -11.32, 59.94)
CIE-LCHlch(94.27, 61.00, 100.70°)
OKLaboklab(94.67% -0.0343 0.1404)
OKLCHoklch(94.67% 0.144 103.7)
XYZxyz(75.9573, 85.9095, 30.0303)
Luminance0.8591 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF277 #7783FE
analogous
#FEAF77 #FEF277 #C6FE77
triadic
#FEF277 #77FEF2 #F277FE
tetradic
#FEF277 #77FEAF #7783FE #FE77C6
square
#FEF277 #77FEAF #7783FE #FE77C6
split-complementary
#FEF277 #77C6FE #AF77FE
monochromatic
#F9E302 #FEEC3A #FEF277 #FEF8B4 #FFFCE1

Accessibility & contrast

On white

1.16
#FEF277 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.18
#FEF277 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF277
18.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF277#FFFFFF#000000##000000
##FEF2771.001.1618.1818.18
#FFFFFF1.161.0021.0021.00
#00000018.1821.001.001.00
##00000018.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB6B
Deuteranopia (green-blind)
#FFF17D
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef277;
/* rgb */ color: rgb(254, 242, 119);
/* oklch */ color: oklch(94.7% 0.144 103.7);
Tailwind
colors: {
  custom: {
    50: '#fff6a1',
    500: '#fef277',
    950: '#000000',
  },
}
SCSS
$custom: #fef277;
$custom-light: #fff6a1;
$custom-dark: #000000;
JSON
{
  "hex": "#fef277",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 119
  },
  "hsl": {
    "h": 54.667,
    "s": 98.54,
    "l": 73.137
  },
  "oklch": {
    "l": 0.94672,
    "c": 0.14449,
    "h": 103.7
  },
  "luminance": 0.85907
}

Semantic roles & 50–950 ramp

primary
#FEF277
secondary
#3E4CDC
accent
#14E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF277

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

Preview Lab → · Contrast checker → · Palette generator →

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