#A240D2#A240D2

#A240D2 is a mid, highly saturated purple. Relative luminance 0.160; OKLCH L 57.1% C 0.220 H 312.2°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#A240D2
RGBrgb(162, 64, 210)
HSLhsl(280, 62%, 54%)
HSVhsv(280, 70%, 82%)
CMYKcmyk(22.9%, 69.5%, 0%, 17.6%)
CIE-LABlab(46.98, 62.68, -57.68)
CIE-LCHlch(46.98, 85.18, 317.38°)
OKLaboklab(57.05% 0.1479 -0.1629)
OKLCHoklch(57.05% 0.22 312.2)
XYZxyz(28.3644, 16.0021, 62.5548)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240D2 #70D240
analogous
#5940D2 #A240D2 #D240B9
triadic
#A240D2 #D2A240 #40D2A2
tetradic
#A240D2 #D25940 #70D240 #40B9D2
square
#A240D2 #D25940 #70D240 #40B9D2
split-complementary
#A240D2 #B9D240 #40D259
monochromatic
#5C1D7B #8129AC #A240D2 #BA72DE #D2A3E9

Accessibility & contrast

On white

5.00
#A240D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#A240D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240D2
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240D2#FFFFFF#000000##FFFFFF
##A240D21.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD6
Deuteranopia (green-blind)
#3071CF
Tritanopia (blue-blind)
#9C5F85
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a240d2;
/* rgb */ color: rgb(162, 64, 210);
/* oklch */ color: oklch(57.1% 0.220 312.2);
Tailwind
colors: {
  custom: {
    50: '#c27de1',
    500: '#a240d2',
    950: '#000000',
  },
}
SCSS
$custom: #a240d2;
$custom-light: #c27de1;
$custom-dark: #000000;
JSON
{
  "hex": "#a240d2",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 210
  },
  "hsl": {
    "h": 280.274,
    "s": 61.864,
    "l": 53.725
  },
  "oklch": {
    "l": 0.57054,
    "c": 0.22,
    "h": 312.2
  },
  "luminance": 0.16001
}

Semantic roles & 50–950 ramp

primary
#A240D2
secondary
#ACD698
accent
#E54378
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A240D2

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

Preview Lab → · Contrast checker → · Palette generator →

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