#A240CB#A240CB

#A240CB is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.6% C 0.213 H 314.1°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#A240CB
RGBrgb(162, 64, 203)
HSLhsl(282, 57%, 52%)
HSVhsv(282, 68%, 80%)
CMYKcmyk(20.2%, 68.5%, 0%, 20.4%)
CIE-LABlab(46.53, 61.24, -54.38)
CIE-LCHlch(46.53, 81.90, 318.39°)
OKLaboklab(56.59% 0.1485 -0.1532)
OKLCHoklch(56.59% 0.213 314.1)
XYZxyz(27.5114, 15.6609, 58.0620)
Luminance0.1566 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240CB #69CB40
analogous
#5C40CB #A240CB #CB40AF
triadic
#A240CB #CBA240 #40CBA2
tetradic
#A240CB #CB5C40 #69CB40 #40AFCB
square
#A240CB #CB5C40 #69CB40 #40AFCB
split-complementary
#A240CB #AFCB40 #40CB5C
monochromatic
#591F72 #7F2CA2 #A240CB #B970D8 #D1A0E5

Accessibility & contrast

On white

5.08
#A240CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#A240CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240CB
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240CB#FFFFFF#000000##FFFFFF
##A240CB1.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#3971C8
Tritanopia (blue-blind)
#9E5C81
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a240cb;
/* rgb */ color: rgb(162, 64, 203);
/* oklch */ color: oklch(56.6% 0.213 314.1);
Tailwind
colors: {
  custom: {
    50: '#c17cdb',
    500: '#a240cb',
    950: '#000000',
  },
}
SCSS
$custom: #a240cb;
$custom-light: #c17cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#a240cb",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 203
  },
  "hsl": {
    "h": 282.302,
    "s": 57.202,
    "l": 52.353
  },
  "oklch": {
    "l": 0.56588,
    "c": 0.21338,
    "h": 314.1
  },
  "luminance": 0.1566
}

Semantic roles & 50–950 ramp

primary
#A240CB
secondary
#A7D295
accent
#E04775
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A240CB

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

Preview Lab → · Contrast checker → · Palette generator →

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