#FEF261#FEF261

#FEF261 is a very light, vivid yellow. Relative luminance 0.854; OKLCH L 94.4% C 0.163 H 104.6°. Best body text is #000000 at 18.09:1 contrast (WCAG AA passes).

Color values

HEX#FEF261
RGBrgb(254, 242, 97)
HSLhsl(55, 99%, 69%)
HSVhsv(55, 62%, 100%)
CMYKcmyk(0%, 4.7%, 61.8%, 0.4%)
CIE-LABlab(94.07, -12.85, 69.20)
CIE-LCHlch(94.07, 70.39, 100.52°)
OKLaboklab(94.45% -0.041 0.1575)
OKLCHoklch(94.45% 0.163 104.6)
XYZxyz(74.7856, 85.4408, 23.8593)
Luminance0.8544 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF261 #616DFE
analogous
#FEA461 #FEF261 #BCFE61
triadic
#FEF261 #61FEF2 #F261FE
tetradic
#FEF261 #61FEA4 #616DFE #FE61BC
square
#FEF261 #61FEA4 #616DFE #FE61BC
split-complementary
#FEF261 #61BCFE #A461FE
monochromatic
#E3D201 #FEED24 #FEF261 #FEF79E #FFFCDB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF261#FFFFFF#000000##000000
##FEF2611.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)
#FFEA4F
Deuteranopia (green-blind)
#FFF169
Tritanopia (blue-blind)
#FFE3D4
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef261;
/* rgb */ color: rgb(254, 242, 97);
/* oklch */ color: oklch(94.4% 0.163 104.6);
Tailwind
colors: {
  custom: {
    50: '#fff694',
    500: '#fef261',
    950: '#000000',
  },
}
SCSS
$custom: #fef261;
$custom-light: #fff694;
$custom-dark: #000000;
JSON
{
  "hex": "#fef261",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 97
  },
  "hsl": {
    "h": 55.414,
    "s": 98.742,
    "l": 68.824
  },
  "oklch": {
    "l": 0.94448,
    "c": 0.16279,
    "h": 104.6
  },
  "luminance": 0.85438
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF261

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

Preview Lab → · Contrast checker → · Palette generator →

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