#A240CA#A240CA

#A240CA is a mid, highly saturated purple. Relative luminance 0.156; OKLCH L 56.5% C 0.212 H 314.4°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#A240CA
RGBrgb(162, 64, 202)
HSLhsl(283, 57%, 52%)
HSVhsv(283, 68%, 79%)
CMYKcmyk(19.8%, 68.3%, 0%, 20.8%)
CIE-LABlab(46.46, 61.03, -53.90)
CIE-LCHlch(46.46, 81.43, 318.55°)
OKLaboklab(56.52% 0.1486 -0.1518)
OKLCHoklch(56.52% 0.212 314.4)
XYZxyz(27.3926, 15.6134, 57.4364)
Luminance0.1561 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240CA #68CA40
analogous
#5D40CA #A240CA #CA40AD
triadic
#A240CA #CAA240 #40CAA2
tetradic
#A240CA #CA5D40 #68CA40 #40ADCA
square
#A240CA #CA5D40 #68CA40 #40ADCA
split-complementary
#A240CA #ADCA40 #40CA5D
monochromatic
#591F70 #7F2CA0 #A240CA #B970D7 #D1A0E5

Accessibility & contrast

On white

5.09
#A240CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#A240CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240CA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240CA#FFFFFF#000000##FFFFFF
##A240CA1.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CE
Deuteranopia (green-blind)
#3A71C7
Tritanopia (blue-blind)
#9E5C80
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a240ca;
/* rgb */ color: rgb(162, 64, 202);
/* oklch */ color: oklch(56.5% 0.212 314.4);
Tailwind
colors: {
  custom: {
    50: '#c17cdb',
    500: '#a240ca',
    950: '#000000',
  },
}
SCSS
$custom: #a240ca;
$custom-light: #c17cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#a240ca",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 202
  },
  "hsl": {
    "h": 282.609,
    "s": 56.557,
    "l": 52.157
  },
  "oklch": {
    "l": 0.56523,
    "c": 0.21243,
    "h": 314.4
  },
  "luminance": 0.15612
}

Semantic roles & 50–950 ramp

primary
#A240CA
secondary
#A6D195
accent
#E04874
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A240CA

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

Preview Lab → · Contrast checker → · Palette generator →

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