#FEFE7B#FEFE7B

#FEFE7B is a very light, vivid yellow. Relative luminance 0.934; OKLCH L 97.2% C 0.153 H 108.9°. Best body text is #000000 at 19.68:1 contrast (WCAG AA passes).

Color values

HEX#FEFE7B
RGBrgb(254, 254, 123)
HSLhsl(60, 98%, 74%)
HSVhsv(60, 52%, 100%)
CMYKcmyk(0%, 0%, 51.6%, 0.4%)
CIE-LABlab(97.38, -16.85, 61.76)
CIE-LCHlch(97.38, 64.02, 105.26°)
OKLaboklab(97.16% -0.0496 0.1447)
OKLCHoklch(97.16% 0.153 108.9)
XYZxyz(79.8920, 93.3865, 32.5519)
Luminance0.9338 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEFE7B #7B7BFE
analogous
#FEBD7B #FEFE7B #BDFE7B
triadic
#FEFE7B #7BFEFE #FE7BFE
tetradic
#FEFE7B #7BFEBD #7B7BFE #FE7BBD
square
#FEFE7B #7BFEBD #7B7BFE #FE7BBD
split-complementary
#FEFE7B #7BBDFE #BD7BFE
monochromatic
#FDFD02 #FEFE3E #FEFE7B #FEFEB8 #FFFFE1

Accessibility & contrast

On white

1.07
#FEFE7B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.68
#FEFE7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEFE7B
19.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEFE7B#FFFFFF#000000##000000
##FEFE7B1.001.0719.6819.68
#FFFFFF1.071.0021.0021.00
#00000019.6821.001.001.00
##00000019.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF56E
Deuteranopia (green-blind)
#FFFA82
Tritanopia (blue-blind)
#FFF0E1
Achromatopsia (no color)
#F7F7F7

Design tokens & code

CSS
--color: #fefe7b;
/* rgb */ color: rgb(254, 254, 123);
/* oklch */ color: oklch(97.2% 0.153 108.9);
Tailwind
colors: {
  custom: {
    50: '#fffea5',
    500: '#fefe7b',
    950: '#000000',
  },
}
SCSS
$custom: #fefe7b;
$custom-light: #fffea5;
$custom-dark: #000000;
JSON
{
  "hex": "#fefe7b",
  "rgb": {
    "r": 254,
    "g": 254,
    "b": 123
  },
  "hsl": {
    "h": 60,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.9716,
    "c": 0.15297,
    "h": 108.9
  },
  "luminance": 0.93385
}

Semantic roles & 50–950 ramp

primary
#FEFE7B
secondary
#4141DC
accent
#00E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEFE7B

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

Preview Lab → · Contrast checker → · Palette generator →

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