#FEF272#FEF272

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

Color values

HEX#FEF272
RGBrgb(254, 242, 114)
HSLhsl(55, 99%, 72%)
HSVhsv(55, 55%, 100%)
CMYKcmyk(0%, 4.7%, 55.1%, 0.4%)
CIE-LABlab(94.22, -11.70, 62.12)
CIE-LCHlch(94.22, 63.21, 100.67°)
OKLaboklab(94.62% -0.0359 0.1445)
OKLCHoklch(94.62% 0.149 103.9)
XYZxyz(75.6649, 85.7926, 28.4902)
Luminance0.8579 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF272 #727EFE
analogous
#FEAC72 #FEF272 #C4FE72
triadic
#FEF272 #72FEF2 #F272FE
tetradic
#FEF272 #72FEAC #727EFE #FE72C4
square
#FEF272 #72FEAC #727EFE #FE72C4
split-complementary
#FEF272 #72C4FE #AC72FE
monochromatic
#F4DF02 #FEEC35 #FEF272 #FEF8AF #FFFCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF272#FFFFFF#000000##000000
##FEF2721.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)
#FFEB65
Deuteranopia (green-blind)
#FFF178
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef272;
/* rgb */ color: rgb(254, 242, 114);
/* oklch */ color: oklch(94.6% 0.149 103.9);
Tailwind
colors: {
  custom: {
    50: '#fff69e',
    500: '#fef272',
    950: '#000000',
  },
}
SCSS
$custom: #fef272;
$custom-light: #fff69e;
$custom-dark: #000000;
JSON
{
  "hex": "#fef272",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 114
  },
  "hsl": {
    "h": 54.857,
    "s": 98.592,
    "l": 72.157
  },
  "oklch": {
    "l": 0.94616,
    "c": 0.14893,
    "h": 103.9
  },
  "luminance": 0.8579
}

Semantic roles & 50–950 ramp

primary
#FEF272
secondary
#3947DB
accent
#14E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF272

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

Preview Lab → · Contrast checker → · Palette generator →

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