#FFE940#FFE940

#FFE940 is a very light, vivid yellow. Relative luminance 0.799; OKLCH L 92.5% C 0.176 H 101.6°. Best body text is #000000 at 16.98:1 contrast (WCAG AA passes).

Color values

HEX#FFE940
RGBrgb(255, 233, 64)
HSLhsl(53, 100%, 63%)
HSVhsv(53, 75%, 100%)
CMYKcmyk(0%, 8.6%, 74.9%, 0%)
CIE-LABlab(91.64, -9.66, 78.93)
CIE-LCHlch(91.64, 79.52, 96.98°)
OKLaboklab(92.47% -0.0353 0.1727)
OKLCHoklch(92.47% 0.176 101.6)
XYZxyz(71.3077, 79.9113, 16.5179)
Luminance0.7991 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFE940 #4056FF
analogous
#FF8940 #FFE940 #B5FF40
triadic
#FFE940 #40FFE9 #E940FF
tetradic
#FFE940 #40FF89 #4056FF #FF40B5
square
#FFE940 #40FF89 #4056FF #FF40B5
split-complementary
#FFE940 #40B5FF #8940FF
monochromatic
#C5AE00 #FFE203 #FFE940 #FFF07D #FFF7BA

Accessibility & contrast

On white

1.24
#FFE940 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.98
#FFE940 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFE940
16.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFE940#FFFFFF#000000##000000
##FFE9401.001.2416.9816.98
#FFFFFF1.241.0021.0021.00
#00000016.9821.001.001.00
##00000016.9821.001.001.00

Color blindness preview

Protanopia (red-blind)
#FFE21B
Deuteranopia (green-blind)
#FFEB4C
Tritanopia (blue-blind)
#FFD8C9
Achromatopsia (no color)
#E7E7E7

Design tokens & code

CSS
--color: #ffe940;
/* rgb */ color: rgb(255, 233, 64);
/* oklch */ color: oklch(92.5% 0.176 101.6);
Tailwind
colors: {
  custom: {
    50: '#ffef81',
    500: '#ffe940',
    950: '#000000',
  },
}
SCSS
$custom: #ffe940;
$custom-light: #ffef81;
$custom-dark: #000000;
JSON
{
  "hex": "#ffe940",
  "rgb": {
    "r": 255,
    "g": 233,
    "b": 64
  },
  "hsl": {
    "h": 53.089,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.92469,
    "c": 0.17625,
    "h": 101.6
  },
  "luminance": 0.79908
}

Semantic roles & 50–950 ramp

primary
#FFE940
secondary
#2234C1
accent
#1AE600
background
#FFFFFB
surface
#FFFEF2
border
#D7D6CC
text
#19160B
muted
#87857E

Preview Lab

Preview with #FFE940

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

Preview Lab → · Contrast checker → · Palette generator →

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