#FEDC02#FEDC02

#FEDC02 is a very light, vivid yellow. Relative luminance 0.723; OKLCH L 89.6% C 0.185 H 97.8°. Best body text is #000000 at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#FEDC02
RGBrgb(254, 220, 2)
HSLhsl(52, 99%, 50%)
HSVhsv(52, 99%, 100%)
CMYKcmyk(0%, 13.4%, 99.2%, 0.4%)
CIE-LABlab(88.10, -4.85, 87.75)
CIE-LCHlch(88.10, 87.88, 93.17°)
OKLaboklab(89.58% -0.025 0.1831)
OKLCHoklch(89.58% 0.185 97.8)
XYZxyz(66.4811, 72.2654, 10.5044)
Luminance0.7226 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FEDC02 #0224FE
analogous
#FE5E02 #FEDC02 #A2FE02
triadic
#FEDC02 #02FEDC #DC02FE
tetradic
#FEDC02 #02FE5E #0224FE #FE02A2
square
#FEDC02 #02FE5E #0224FE #FE02A2
split-complementary
#FEDC02 #02A2FE #5E02FE
monochromatic
#857301 #C2A801 #FEDC02 #FEE43F #FEED7C

Accessibility & contrast

On white

1.36
#FEDC02 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.45
#FEDC02 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FEDC02
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FEDC02#FFFFFF#000000##000000
##FEDC021.001.3615.4515.45
#FFFFFF1.361.0021.0021.00
#00000015.4521.001.001.00
##00000015.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#F4D700
Deuteranopia (green-blind)
#FDE226
Tritanopia (blue-blind)
#FFCABB
Achromatopsia (no color)
#DDDDDD

Design tokens & code

CSS
--color: #fedc02;
/* rgb */ color: rgb(254, 220, 2);
/* oklch */ color: oklch(89.6% 0.185 97.8);
Tailwind
colors: {
  custom: {
    50: '#ffe66d',
    500: '#fedc02',
    950: '#000000',
  },
}
SCSS
$custom: #fedc02;
$custom-light: #ffe66d;
$custom-dark: #000000;
JSON
{
  "hex": "#fedc02",
  "rgb": {
    "r": 254,
    "g": 220,
    "b": 2
  },
  "hsl": {
    "h": 51.905,
    "s": 99.213,
    "l": 50.196
  },
  "oklch": {
    "l": 0.89579,
    "c": 0.18481,
    "h": 97.8
  },
  "luminance": 0.72262
}

Semantic roles & 50–950 ramp

primary
#FEDC02
secondary
#19288B
accent
#46FF29
background
#FFFEFB
surface
#FFFCF1
border
#D7D5CB
text
#191509
muted
#87847D

Preview Lab

Preview with #FEDC02

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

Preview Lab → · Contrast checker → · Palette generator →

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