#FFE040#FFE040

#FFE040 is a very light, vivid yellow. Relative luminance 0.749; OKLCH L 90.7% C 0.170 H 97.7°. Best body text is #000000 at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#FFE040
RGBrgb(255, 224, 64)
HSLhsl(50, 100%, 63%)
HSVhsv(50, 75%, 100%)
CMYKcmyk(0%, 12.2%, 74.9%, 0%)
CIE-LABlab(89.37, -5.18, 76.81)
CIE-LCHlch(89.37, 76.99, 93.86°)
OKLaboklab(90.66% -0.0226 0.1682)
OKLCHoklch(90.66% 0.17 97.7)
XYZxyz(68.8246, 74.9451, 15.6902)
Luminance0.7494 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFE040 #405FFF
analogous
#FF8140 #FFE040 #BEFF40
triadic
#FFE040 #40FFE0 #E040FF
tetradic
#FFE040 #40FF81 #405FFF #FF40BE
square
#FFE040 #40FF81 #405FFF #FF40BE
split-complementary
#FFE040 #40BEFF #8140FF
monochromatic
#C5A500 #FFD603 #FFE040 #FFEA7D #FFF4BA

Accessibility & contrast

On white

1.31
#FFE040 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

15.99
#FFE040 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFE040
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFE040#FFFFFF#000000##000000
##FFE0401.001.3115.9915.99
#FFFFFF1.311.0021.0021.00
#00000015.9921.001.001.00
##00000015.9921.001.001.00

Color blindness preview

Protanopia (red-blind)
#F7DB20
Deuteranopia (green-blind)
#FFE54B
Tritanopia (blue-blind)
#FFCFC1
Achromatopsia (no color)
#E1E1E1

Design tokens & code

CSS
--color: #ffe040;
/* rgb */ color: rgb(255, 224, 64);
/* oklch */ color: oklch(90.7% 0.170 97.7);
Tailwind
colors: {
  custom: {
    50: '#ffe980',
    500: '#ffe040',
    950: '#000000',
  },
}
SCSS
$custom: #ffe040;
$custom-light: #ffe980;
$custom-dark: #000000;
JSON
{
  "hex": "#ffe040",
  "rgb": {
    "r": 255,
    "g": 224,
    "b": 64
  },
  "hsl": {
    "h": 50.262,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.90662,
    "c": 0.16968,
    "h": 97.7
  },
  "luminance": 0.74941
}

Semantic roles & 50–950 ramp

primary
#FFE040
secondary
#223CC1
accent
#25E600
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#19160B
muted
#87847E

Preview Lab

Preview with #FFE040

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

Preview Lab → · Contrast checker → · Palette generator →

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