#FEF07B#FEF07B

#FEF07B is a very light, vivid yellow. Relative luminance 0.848; OKLCH L 94.3% C 0.139 H 102.5°. Best body text is #000000 at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#FEF07B
RGBrgb(254, 240, 123)
HSLhsl(54, 98%, 74%)
HSVhsv(54, 52%, 100%)
CMYKcmyk(0%, 5.5%, 51.6%, 0.4%)
CIE-LABlab(93.81, -10.02, 57.57)
CIE-LCHlch(93.81, 58.44, 99.87°)
OKLaboklab(94.32% -0.0301 0.1356)
OKLCHoklch(94.32% 0.139 102.5)
XYZxyz(75.6106, 84.8236, 31.1248)
Luminance0.8482 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEF07B #7B89FE
analogous
#FEAF7B #FEF07B #CBFE7B
triadic
#FEF07B #7BFEF0 #F07BFE
tetradic
#FEF07B #7BFEAF #7B89FE #FE7BCB
square
#FEF07B #7BFEAF #7B89FE #FE7BCB
split-complementary
#FEF07B #7BCBFE #AF7BFE
monochromatic
#FDE202 #FEE93E #FEF07B #FEF7B8 #FFFCE1

Accessibility & contrast

On white

1.17
#FEF07B on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

17.96
#FEF07B on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEF07B
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEF07B#FFFFFF#000000##000000
##FEF07B1.001.1717.9617.96
#FFFFFF1.171.0021.0021.00
#00000017.9621.001.001.00
##00000017.9621.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE970
Deuteranopia (green-blind)
#FFF080
Tritanopia (blue-blind)
#FFE2D5
Achromatopsia (no color)
#EDEDED

Design tokens & code

CSS
--color: #fef07b;
/* rgb */ color: rgb(254, 240, 123);
/* oklch */ color: oklch(94.3% 0.139 102.5);
Tailwind
colors: {
  custom: {
    50: '#fff4a4',
    500: '#fef07b',
    950: '#000000',
  },
}
SCSS
$custom: #fef07b;
$custom-light: #fff4a4;
$custom-dark: #000000;
JSON
{
  "hex": "#fef07b",
  "rgb": {
    "r": 254,
    "g": 240,
    "b": 123
  },
  "hsl": {
    "h": 53.588,
    "s": 98.496,
    "l": 73.922
  },
  "oklch": {
    "l": 0.94315,
    "c": 0.13892,
    "h": 102.5
  },
  "luminance": 0.84821
}

Semantic roles & 50–950 ramp

primary
#FEF07B
secondary
#4152DC
accent
#19E600
background
#FFFFFC
surface
#FFFEF6
border
#D7D6D0
text
#18170F
muted
#868580

Preview Lab

Preview with #FEF07B

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

Preview Lab → · Contrast checker → · Palette generator →

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