#FEF262#FEF262

#FEF262 is a very light, vivid yellow. Relative luminance 0.855; OKLCH L 94.5% C 0.162 H 104.5°. Best body text is #000000 at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#FEF262
RGBrgb(254, 242, 98)
HSLhsl(55, 99%, 69%)
HSVhsv(55, 61%, 100%)
CMYKcmyk(0%, 4.7%, 61.4%, 0.4%)
CIE-LABlab(94.08, -12.79, 68.80)
CIE-LCHlch(94.08, 69.98, 100.53°)
OKLaboklab(94.46% -0.0407 0.1568)
OKLCHoklch(94.46% 0.162 104.5)
XYZxyz(74.8325, 85.4596, 24.1064)
Luminance0.8546 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF262 #626EFE
analogous
#FEA462 #FEF262 #BCFE62
triadic
#FEF262 #62FEF2 #F262FE
tetradic
#FEF262 #62FEA4 #626EFE #FE62BC
square
#FEF262 #62FEA4 #626EFE #FE62BC
split-complementary
#FEF262 #62BCFE #A462FE
monochromatic
#E4D301 #FEED25 #FEF262 #FEF79F #FFFCDC

Accessibility & contrast

On white

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

On black

18.09
#FEF262 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF262
18.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF262#FFFFFF#000000##000000
##FEF2621.001.1618.0918.09
#FFFFFF1.161.0021.0021.00
#00000018.0921.001.001.00
##00000018.0921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEA51
Deuteranopia (green-blind)
#FFF16A
Tritanopia (blue-blind)
#FFE3D4
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef262;
/* rgb */ color: rgb(254, 242, 98);
/* oklch */ color: oklch(94.5% 0.162 104.5);
Tailwind
colors: {
  custom: {
    50: '#fff694',
    500: '#fef262',
    950: '#000000',
  },
}
SCSS
$custom: #fef262;
$custom-light: #fff694;
$custom-dark: #000000;
JSON
{
  "hex": "#fef262",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 98
  },
  "hsl": {
    "h": 55.385,
    "s": 98.734,
    "l": 69.02
  },
  "oklch": {
    "l": 0.94457,
    "c": 0.16203,
    "h": 104.5
  },
  "luminance": 0.85457
}

Semantic roles & 50–950 ramp

primary
#FEF262
secondary
#2C39D8
accent
#12E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#19170E
muted
#87857F

Preview Lab

Preview with #FEF262

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

Preview Lab → · Contrast checker → · Palette generator →

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