#FEF674#FEF674

#FEF674 is a very light, vivid yellow. Relative luminance 0.882; OKLCH L 95.5% C 0.151 H 105.7°. Best body text is #000000 at 18.65:1 contrast (WCAG AA passes).

Color values

HEX#FEF674
RGBrgb(254, 246, 116)
HSLhsl(57, 99%, 73%)
HSVhsv(57, 54%, 100%)
CMYKcmyk(0%, 3.1%, 54.3%, 0.4%)
CIE-LABlab(95.26, -13.51, 62.42)
CIE-LCHlch(95.26, 63.87, 102.21°)
OKLaboklab(95.45% -0.0408 0.1454)
OKLCHoklch(95.45% 0.151 105.7)
XYZxyz(76.9835, 88.2457, 29.4975)
Luminance0.8824 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF674 #747CFE
analogous
#FEB174 #FEF674 #C1FE74
triadic
#FEF674 #74FEF6 #F674FE
tetradic
#FEF674 #74FEB1 #747CFE #FE74C1
square
#FEF674 #74FEB1 #747CFE #FE74C1
split-complementary
#FEF674 #74C1FE #B174FE
monochromatic
#F6E802 #FEF237 #FEF674 #FEFAB1 #FFFDE1

Accessibility & contrast

On white

1.13
#FEF674 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.65
#FEF674 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF674
18.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF674#FFFFFF#000000##000000
##FEF6741.001.1318.6518.65
#FFFFFF1.131.0021.0021.00
#00000018.6521.001.001.00
##00000018.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEE67
Deuteranopia (green-blind)
#FFF47B
Tritanopia (blue-blind)
#FFE8D9
Achromatopsia (no color)
#F1F1F1

Design tokens & code

CSS
--color: #fef674;
/* rgb */ color: rgb(254, 246, 116);
/* oklch */ color: oklch(95.5% 0.151 105.7);
Tailwind
colors: {
  custom: {
    50: '#fff8a0',
    500: '#fef674',
    950: '#000000',
  },
}
SCSS
$custom: #fef674;
$custom-light: #fff8a0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef674",
  "rgb": {
    "r": 254,
    "g": 246,
    "b": 116
  },
  "hsl": {
    "h": 56.522,
    "s": 98.571,
    "l": 72.549
  },
  "oklch": {
    "l": 0.9545,
    "c": 0.15104,
    "h": 105.7
  },
  "luminance": 0.88243
}

Semantic roles & 50–950 ramp

primary
#FEF674
secondary
#3B44DB
accent
#0DE600
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF674

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

Preview Lab → · Contrast checker → · Palette generator →

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