#FEF273#FEF273

#FEF273 is a very light, vivid yellow. Relative luminance 0.858; OKLCH L 94.6% C 0.148 H 103.9°. Best body text is #000000 at 18.16:1 contrast (WCAG AA passes).

Color values

HEX#FEF273
RGBrgb(254, 242, 115)
HSLhsl(55, 99%, 72%)
HSVhsv(55, 55%, 100%)
CMYKcmyk(0%, 4.7%, 54.7%, 0.4%)
CIE-LABlab(94.23, -11.63, 61.69)
CIE-LCHlch(94.23, 62.77, 100.67°)
OKLaboklab(94.63% -0.0356 0.1437)
OKLCHoklch(94.63% 0.148 103.9)
XYZxyz(75.7221, 85.8154, 28.7916)
Luminance0.8581 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF273 #737FFE
analogous
#FEAC73 #FEF273 #C5FE73
triadic
#FEF273 #73FEF2 #F273FE
tetradic
#FEF273 #73FEAC #737FFE #FE73C5
square
#FEF273 #73FEAC #737FFE #FE73C5
split-complementary
#FEF273 #73C5FE #AC73FE
monochromatic
#F5E002 #FEEC36 #FEF273 #FEF8B0 #FFFCE1

Accessibility & contrast

On white

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

On black

18.16
#FEF273 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF273
18.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF273#FFFFFF#000000##000000
##FEF2731.001.1618.1618.16
#FFFFFF1.161.0021.0021.00
#00000018.1621.001.001.00
##00000018.1621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB66
Deuteranopia (green-blind)
#FFF179
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef273;
/* rgb */ color: rgb(254, 242, 115);
/* oklch */ color: oklch(94.6% 0.148 103.9);
Tailwind
colors: {
  custom: {
    50: '#fff69f',
    500: '#fef273',
    950: '#000000',
  },
}
SCSS
$custom: #fef273;
$custom-light: #fff69f;
$custom-dark: #000000;
JSON
{
  "hex": "#fef273",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 115
  },
  "hsl": {
    "h": 54.82,
    "s": 98.582,
    "l": 72.353
  },
  "oklch": {
    "l": 0.94627,
    "c": 0.14805,
    "h": 103.9
  },
  "luminance": 0.85813
}

Semantic roles & 50–950 ramp

primary
#FEF273
secondary
#3A48DB
accent
#14E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF273

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

Preview Lab → · Contrast checker → · Palette generator →

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