#FEFA7B#FEFA7B

#FEFA7B is a very light, vivid yellow. Relative luminance 0.909; OKLCH L 96.3% C 0.149 H 107.3°. Best body text is #000000 at 19.17:1 contrast (WCAG AA passes).

Color values

HEX#FEFA7B
RGBrgb(254, 250, 123)
HSLhsl(58, 98%, 74%)
HSVhsv(58, 52%, 100%)
CMYKcmyk(0%, 1.6%, 51.6%, 0.4%)
CIE-LABlab(96.36, -14.92, 60.56)
CIE-LCHlch(96.36, 62.37, 103.84°)
OKLaboklab(96.34% -0.0441 0.1421)
OKLCHoklch(96.34% 0.149 107.3)
XYZxyz(78.6359, 90.8743, 32.1332)
Luminance0.9087 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEFA7B #7B7FFE
analogous
#FEB97B #FEFA7B #C1FE7B
triadic
#FEFA7B #7BFEFA #FA7BFE
tetradic
#FEFA7B #7BFEB9 #7B7FFE #FE7BC1
square
#FEFA7B #7BFEB9 #7B7FFE #FE7BC1
split-complementary
#FEFA7B #7BC1FE #B97BFE
monochromatic
#FDF502 #FEF83E #FEFA7B #FEFCB8 #FFFEE1

Accessibility & contrast

On white

1.10
#FEFA7B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

19.17
#FEFA7B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEFA7B
19.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEFA7B#FFFFFF#000000##000000
##FEFA7B1.001.1019.1719.17
#FFFFFF1.101.0021.0021.00
#00000019.1721.001.001.00
##00000019.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFF26F
Deuteranopia (green-blind)
#FFF781
Tritanopia (blue-blind)
#FFECDD
Achromatopsia (no color)
#F4F4F4

Design tokens & code

CSS
--color: #fefa7b;
/* rgb */ color: rgb(254, 250, 123);
/* oklch */ color: oklch(96.3% 0.149 107.3);
Tailwind
colors: {
  custom: {
    50: '#fffba4',
    500: '#fefa7b',
    950: '#000000',
  },
}
SCSS
$custom: #fefa7b;
$custom-light: #fffba4;
$custom-dark: #000000;
JSON
{
  "hex": "#fefa7b",
  "rgb": {
    "r": 254,
    "g": 250,
    "b": 123
  },
  "hsl": {
    "h": 58.168,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.96343,
    "c": 0.1488,
    "h": 107.3
  },
  "luminance": 0.90872
}

Semantic roles & 50–950 ramp

primary
#FEFA7B
secondary
#4146DC
accent
#07E600
background
#FFFFFC
surface
#FFFFF6
border
#D7D7D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEFA7B

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

Preview Lab → · Contrast checker → · Palette generator →

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