#FEF275#FEF275

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

Color values

HEX#FEF275
RGBrgb(254, 242, 117)
HSLhsl(55, 99%, 73%)
HSVhsv(55, 54%, 100%)
CMYKcmyk(0%, 4.7%, 53.9%, 0.4%)
CIE-LABlab(94.25, -11.48, 60.82)
CIE-LCHlch(94.25, 61.89, 100.69°)
OKLaboklab(94.65% -0.0349 0.1421)
OKLCHoklch(94.65% 0.146 103.8)
XYZxyz(75.8384, 85.8620, 29.4043)
Luminance0.8586 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF275 #7581FE
analogous
#FEAE75 #FEF275 #C5FE75
triadic
#FEF275 #75FEF2 #F275FE
tetradic
#FEF275 #75FEAE #7581FE #FE75C5
square
#FEF275 #75FEAE #7581FE #FE75C5
split-complementary
#FEF275 #75C5FE #AE75FE
monochromatic
#F7E102 #FEEC38 #FEF275 #FEF8B2 #FFFCE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##FEF275#FFFFFF#000000##000000
##FEF2751.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)
#FFEB69
Deuteranopia (green-blind)
#FFF17B
Tritanopia (blue-blind)
#FFE4D6
Achromatopsia (no color)
#EEEEEE

Design tokens & code

CSS
--color: #fef275;
/* rgb */ color: rgb(254, 242, 117);
/* oklch */ color: oklch(94.7% 0.146 103.8);
Tailwind
colors: {
  custom: {
    50: '#fff6a0',
    500: '#fef275',
    950: '#000000',
  },
}
SCSS
$custom: #fef275;
$custom-light: #fff6a0;
$custom-dark: #000000;
JSON
{
  "hex": "#fef275",
  "rgb": {
    "r": 254,
    "g": 242,
    "b": 117
  },
  "hsl": {
    "h": 54.745,
    "s": 98.561,
    "l": 72.745
  },
  "oklch": {
    "l": 0.9465,
    "c": 0.14629,
    "h": 103.8
  },
  "luminance": 0.85859
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #FEF275

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

Preview Lab → · Contrast checker → · Palette generator →

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