#FFE840#FFE840

#FFE840 is a very light, vivid yellow. Relative luminance 0.793; OKLCH L 92.3% C 0.175 H 101.1°. Best body text is #000000 at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#FFE840
RGBrgb(255, 232, 64)
HSLhsl(53, 100%, 63%)
HSVhsv(53, 75%, 100%)
CMYKcmyk(0%, 9%, 74.9%, 0%)
CIE-LABlab(91.39, -9.16, 78.69)
CIE-LCHlch(91.39, 79.22, 96.64°)
OKLaboklab(92.27% -0.0339 0.1722)
OKLCHoklch(92.27% 0.175 101.1)
XYZxyz(71.0254, 79.3467, 16.4238)
Luminance0.7934 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFE840 #4057FF
analogous
#FF8940 #FFE840 #B6FF40
triadic
#FFE840 #40FFE8 #E840FF
tetradic
#FFE840 #40FF89 #4057FF #FF40B6
square
#FFE840 #40FF89 #4057FF #FF40B6
split-complementary
#FFE840 #40B6FF #8940FF
monochromatic
#C5AD00 #FFE103 #FFE840 #FFEF7D #FFF7BA

Accessibility & contrast

On white

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

On black

16.87
#FFE840 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFE840
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFE840#FFFFFF#000000##000000
##FFE8401.001.2416.8716.87
#FFFFFF1.241.0021.0021.00
#00000016.8721.001.001.00
##00000016.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#FEE11B
Deuteranopia (green-blind)
#FFEA4C
Tritanopia (blue-blind)
#FFD7C8
Achromatopsia (no color)
#E6E6E6

Design tokens & code

CSS
--color: #ffe840;
/* rgb */ color: rgb(255, 232, 64);
/* oklch */ color: oklch(92.3% 0.175 101.1);
Tailwind
colors: {
  custom: {
    50: '#ffee81',
    500: '#ffe840',
    950: '#000000',
  },
}
SCSS
$custom: #ffe840;
$custom-light: #ffee81;
$custom-dark: #000000;
JSON
{
  "hex": "#ffe840",
  "rgb": {
    "r": 255,
    "g": 232,
    "b": 64
  },
  "hsl": {
    "h": 52.775,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.92267,
    "c": 0.17548,
    "h": 101.1
  },
  "luminance": 0.79343
}

Semantic roles & 50–950 ramp

primary
#FFE840
secondary
#2235C1
accent
#1CE600
background
#FFFEFB
surface
#FFFDF2
border
#D7D5CC
text
#19160B
muted
#87847E

Preview Lab

Preview with #FFE840

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

Preview Lab → · Contrast checker → · Palette generator →

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