#FFE240#FFE240

#FFE240 is a very light, vivid yellow. Relative luminance 0.760; OKLCH L 91.1% C 0.171 H 98.6°. Best body text is #000000 at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#FFE240
RGBrgb(255, 226, 64)
HSLhsl(51, 100%, 63%)
HSVhsv(51, 75%, 100%)
CMYKcmyk(0%, 11.4%, 74.9%, 0%)
CIE-LABlab(89.87, -6.18, 77.28)
CIE-LCHlch(89.87, 77.53, 94.57°)
OKLaboklab(91.06% -0.0255 0.1692)
OKLCHoklch(91.06% 0.171 98.6)
XYZxyz(69.3653, 76.0264, 15.8704)
Luminance0.7602 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#FFE240 #405DFF
analogous
#FF8240 #FFE240 #BDFF40
triadic
#FFE240 #40FFE2 #E240FF
tetradic
#FFE240 #40FF82 #405DFF #FF40BD
square
#FFE240 #40FF82 #405DFF #FF40BD
split-complementary
#FFE240 #40BDFF #8240FF
monochromatic
#C5A700 #FFD903 #FFE240 #FFEB7D #FFF5BA

Accessibility & contrast

On white

1.30
#FFE240 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

16.20
#FFE240 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #FFE240
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##FFE240#FFFFFF#000000##000000
##FFE2401.001.3016.2016.20
#FFFFFF1.301.0021.0021.00
#00000016.2021.001.001.00
##00000016.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#F8DC1F
Deuteranopia (green-blind)
#FFE64B
Tritanopia (blue-blind)
#FFD1C3
Achromatopsia (no color)
#E2E2E2

Design tokens & code

CSS
--color: #ffe240;
/* rgb */ color: rgb(255, 226, 64);
/* oklch */ color: oklch(91.1% 0.171 98.6);
Tailwind
colors: {
  custom: {
    50: '#ffea80',
    500: '#ffe240',
    950: '#000000',
  },
}
SCSS
$custom: #ffe240;
$custom-light: #ffea80;
$custom-dark: #000000;
JSON
{
  "hex": "#ffe240",
  "rgb": {
    "r": 255,
    "g": 226,
    "b": 64
  },
  "hsl": {
    "h": 50.89,
    "s": 100,
    "l": 62.549
  },
  "oklch": {
    "l": 0.91062,
    "c": 0.17108,
    "h": 98.6
  },
  "luminance": 0.76023
}

Semantic roles & 50–950 ramp

primary
#FFE240
secondary
#223AC1
accent
#23E600
background
#FFFEFB
surface
#FFFCF2
border
#D7D5CC
text
#19160B
muted
#87847E

Preview Lab

Preview with #FFE240

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

Preview Lab → · Contrast checker → · Palette generator →

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