#FEF295#FEF295

#FEF295 is a very light, moderate yellow. Relative luminance 0.867; OKLCH L 95.1% C 0.115 H 101.9°. Best body text is #000000 at 18.35:1 contrast (WCAG AA passes).

Color values

HEX#FEF295
RGBrgb(254, 242, 149)
HSLhsl(53, 98%, 79%)
HSVhsv(53, 41%, 100%)
CMYKcmyk(0%, 4.7%, 41.3%, 0.4%)
CIE-LABlab(94.63, -8.64, 46.25)
CIE-LCHlch(94.63, 47.05, 100.58°)
OKLaboklab(95.07% -0.0237 0.1124)
OKLCHoklch(95.07% 0.115 101.9)
XYZxyz(78.0516, 86.7472, 41.0603)
Luminance0.8675 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF295 #95A1FE
analogous
#FEBE95 #FEF295 #D6FE95
triadic
#FEF295 #95FEF2 #F295FE
tetradic
#FEF295 #95FEBE #95A1FE #FE95D6
square
#FEF295 #95FEBE #95A1FE #FE95D6
split-complementary
#FEF295 #95D6FE #BE95FE
monochromatic
#FDE31C #FDEB58 #FEF295 #FFF9D2 #FFFBE1

Accessibility & contrast

On white

1.14
#FEF295 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.35
#FEF295 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF295
18.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF295#FFFFFF#000000##000000
##FEF2951.001.1418.3518.35
#FFFFFF1.141.0021.0021.00
#00000018.3521.001.001.00
##00000018.3521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFEC8E
Deuteranopia (green-blind)
#FFF299
Tritanopia (blue-blind)
#FFE6DB
Achromatopsia (no color)
#F0F0F0

Design tokens & code

CSS
--color: #fef295;
/* rgb */ color: rgb(254, 242, 149);
/* oklch */ color: oklch(95.1% 0.115 101.9);
Tailwind
colors: {
  custom: {
    50: '#fff6b5',
    500: '#fef295',
    950: '#000000',
  },
}
SCSS
$custom: #fef295;
$custom-light: #fff6b5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef295",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 149
  },
  "hsl": {
    "h": 53.143,
    "s": 98.131,
    "l": 79.02
  },
  "oklch": {
    "l": 0.95072,
    "c": 0.11482,
    "h": 101.9
  },
  "luminance": 0.86745
}

Semantic roles & 50–950 ramp

primary
#FEF295
secondary
#5767E0
accent
#1AE600
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF295

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

Preview Lab → · Contrast checker → · Palette generator →

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