#A240D0#A240D0

#A240D0 is a mid, highly saturated purple. Relative luminance 0.159; OKLCH L 56.9% C 0.218 H 312.8°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#A240D0
RGBrgb(162, 64, 208)
HSLhsl(281, 61%, 53%)
HSVhsv(281, 69%, 82%)
CMYKcmyk(22.1%, 69.2%, 0%, 18.4%)
CIE-LABlab(46.85, 62.26, -56.74)
CIE-LCHlch(46.85, 84.24, 317.66°)
OKLaboklab(56.92% 0.1481 -0.1601)
OKLCHoklch(56.92% 0.218 312.8)
XYZxyz(28.1168, 15.9031, 61.2507)
Luminance0.1590 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240D0 #6ED040
analogous
#5A40D0 #A240D0 #D040B6
triadic
#A240D0 #D0A240 #40D0A2
tetradic
#A240D0 #D05A40 #6ED040 #40B6D0
square
#A240D0 #D05A40 #6ED040 #40B6D0
split-complementary
#A240D0 #B6D040 #40D05A
monochromatic
#5B1E78 #802AA9 #A240D0 #BA71DC #D2A2E8

Accessibility & contrast

On white

5.02
#A240D0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#A240D0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240D0
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240D0#FFFFFF#000000##FFFFFF
##A240D01.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD4
Deuteranopia (green-blind)
#3371CD
Tritanopia (blue-blind)
#9D5E83
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a240d0;
/* rgb */ color: rgb(162, 64, 208);
/* oklch */ color: oklch(56.9% 0.218 312.8);
Tailwind
colors: {
  custom: {
    50: '#c27ddf',
    500: '#a240d0',
    950: '#000000',
  },
}
SCSS
$custom: #a240d0;
$custom-light: #c27ddf;
$custom-dark: #000000;
JSON
{
  "hex": "#a240d0",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 208
  },
  "hsl": {
    "h": 280.833,
    "s": 60.504,
    "l": 53.333
  },
  "oklch": {
    "l": 0.5692,
    "c": 0.2181,
    "h": 312.8
  },
  "luminance": 0.15902
}

Semantic roles & 50–950 ramp

primary
#A240D0
secondary
#ABD597
accent
#E44477
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A240D0

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

Preview Lab → · Contrast checker → · Palette generator →

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