#FEF278#FEF278

#FEF278 is a very light, vivid yellow. Relative luminance 0.859; OKLCH L 94.7% C 0.144 H 103.7°. Best body text is #000000 at 18.19:1 contrast (WCAG AA passes).

Color values

HEX#FEF278
RGBrgb(254, 242, 120)
HSLhsl(55, 99%, 73%)
HSVhsv(55, 53%, 100%)
CMYKcmyk(0%, 4.7%, 52.8%, 0.4%)
CIE-LABlab(94.28, -11.24, 59.50)
CIE-LCHlch(94.28, 60.55, 100.70°)
OKLaboklab(94.68% -0.0339 0.1395)
OKLCHoklch(94.68% 0.144 103.7)
XYZxyz(76.0176, 85.9337, 30.3482)
Luminance0.8593 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF278 #7884FE
analogous
#FEAF78 #FEF278 #C7FE78
triadic
#FEF278 #78FEF2 #F278FE
tetradic
#FEF278 #78FEAF #7884FE #FE78C7
square
#FEF278 #78FEAF #7884FE #FE78C7
split-complementary
#FEF278 #78C7FE #AF78FE
monochromatic
#FAE402 #FEEC3B #FEF278 #FEF8B5 #FFFCE1

Accessibility & contrast

On white

1.15
#FEF278 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.19
#FEF278 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF278
18.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF278#FFFFFF#000000##000000
##FEF2781.001.1518.1918.19
#FFFFFF1.151.0021.0021.00
#00000018.1921.001.001.00
##00000018.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEB6C
Deuteranopia (green-blind)
#FFF17E
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EFEFEF

Design tokens & code

CSS
--color: #fef278;
/* rgb */ color: rgb(254, 242, 120);
/* oklch */ color: oklch(94.7% 0.144 103.7);
Tailwind
colors: {
  custom: {
    50: '#fff6a2',
    500: '#fef278',
    950: '#000000',
  },
}
SCSS
$custom: #fef278;
$custom-light: #fff6a2;
$custom-dark: #000000;
JSON
{
  "hex": "#fef278",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 120
  },
  "hsl": {
    "h": 54.627,
    "s": 98.529,
    "l": 73.333
  },
  "oklch": {
    "l": 0.94684,
    "c": 0.14359,
    "h": 103.7
  },
  "luminance": 0.85931
}

Semantic roles & 50–950 ramp

primary
#FEF278
secondary
#3F4DDC
accent
#15E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF278

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

Preview Lab → · Contrast checker → · Palette generator →

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