#FEF795#FEF795

#FEF795 is a very light, moderate yellow. Relative luminance 0.898; OKLCH L 96.1% C 0.120 H 104.9°. Best body text is #000000 at 18.95:1 contrast (WCAG AA passes).

Color values

HEX#FEF795
RGBrgb(254, 247, 149)
HSLhsl(56, 98%, 79%)
HSVhsv(56, 41%, 100%)
CMYKcmyk(0%, 2.8%, 41.3%, 0.4%)
CIE-LABlab(95.90, -11.10, 47.85)
CIE-LCHlch(95.90, 49.12, 103.07°)
OKLaboklab(96.08% -0.0308 0.116)
OKLCHoklch(96.08% 0.12 104.9)
XYZxyz(79.5601, 89.7643, 41.5632)
Luminance0.8976 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF795 #959CFE
analogous
#FEC395 #FEF795 #D1FE95
triadic
#FEF795 #95FEF7 #F795FE
tetradic
#FEF795 #95FEC3 #959CFE #FE95D1
square
#FEF795 #95FEC3 #959CFE #FE95D1
split-complementary
#FEF795 #95D1FE #C395FE
monochromatic
#FDEE1C #FDF258 #FEF795 #FFFCD2 #FFFDE1

Accessibility & contrast

On white

1.11
#FEF795 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

18.95
#FEF795 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF795
18.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF795#FFFFFF#000000##000000
##FEF7951.001.1118.9518.95
#FFFFFF1.111.0021.0021.00
#00000018.9521.001.001.00
##00000018.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF08D
Deuteranopia (green-blind)
#FFF699
Tritanopia (blue-blind)
#FFEBDF
Achromatopsia (no color)
#F3F3F3

Design tokens & code

CSS
--color: #fef795;
/* rgb */ color: rgb(254, 247, 149);
/* oklch */ color: oklch(96.1% 0.120 104.9);
Tailwind
colors: {
  custom: {
    50: '#fff9b5',
    500: '#fef795',
    950: '#000000',
  },
}
SCSS
$custom: #fef795;
$custom-light: #fff9b5;
$custom-dark: #000000;
JSON
{
  "hex": "#fef795",
  "rgb": {
    "r": 254,
    "g": 247,
    "b": 149
  },
  "hsl": {
    "h": 56,
    "s": 98.131,
    "l": 79.02
  },
  "oklch": {
    "l": 0.96077,
    "c": 0.11998,
    "h": 104.9
  },
  "luminance": 0.89762
}

Semantic roles & 50–950 ramp

primary
#FEF795
secondary
#5760E0
accent
#0FE600
background
#FFFFFD
surface
#FFFFF8
border
#D7D7D1
text
#181711
muted
#868581

Preview Lab

Preview with #FEF795

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

Preview Lab → · Contrast checker → · Palette generator →

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