#FEF274#FEF274

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

Color values

HEX#FEF274
RGBrgb(254, 242, 116)
HSLhsl(55, 99%, 73%)
HSVhsv(55, 54%, 100%)
CMYKcmyk(0%, 4.7%, 54.3%, 0.4%)
CIE-LABlab(94.24, -11.55, 61.25)
CIE-LCHlch(94.24, 62.33, 100.68°)
OKLaboklab(94.64% -0.0352 0.1429)
OKLCHoklch(94.64% 0.147 103.9)
XYZxyz(75.7799, 85.8386, 29.0963)
Luminance0.8584 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF274 #7480FE
analogous
#FEAD74 #FEF274 #C5FE74
triadic
#FEF274 #74FEF2 #F274FE
tetradic
#FEF274 #74FEAD #7480FE #FE74C5
square
#FEF274 #74FEAD #7480FE #FE74C5
split-complementary
#FEF274 #74C5FE #AD74FE
monochromatic
#F6E102 #FEEC37 #FEF274 #FEF8B1 #FFFCE1

Accessibility & contrast

On white

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

On black

18.17
#FEF274 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF274
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF274#FFFFFF#000000##000000
##FEF2741.001.1618.1718.17
#FFFFFF1.161.0021.0021.00
#00000018.1721.001.001.00
##00000018.1721.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #fef274;
/* rgb */ color: rgb(254, 242, 116);
/* oklch */ color: oklch(94.6% 0.147 103.9);
Tailwind
colors: {
  custom: {
    50: '#fff69f',
    500: '#fef274',
    950: '#000000',
  },
}
SCSS
$custom: #fef274;
$custom-light: #fff69f;
$custom-dark: #000000;
JSON
{
  "hex": "#fef274",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 116
  },
  "hsl": {
    "h": 54.783,
    "s": 98.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.94638,
    "c": 0.14717,
    "h": 103.9
  },
  "luminance": 0.85836
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF274

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

Preview Lab → · Contrast checker → · Palette generator →

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