#A240CD#A240CD

#A240CD is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.7% C 0.215 H 313.6°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#A240CD
RGBrgb(162, 64, 205)
HSLhsl(282, 59%, 53%)
HSVhsv(282, 69%, 80%)
CMYKcmyk(21%, 68.8%, 0%, 19.6%)
CIE-LABlab(46.65, 61.64, -55.33)
CIE-LCHlch(46.65, 82.83, 318.09°)
OKLaboklab(56.72% 0.1484 -0.156)
OKLCHoklch(56.72% 0.215 313.6)
XYZxyz(27.7512, 15.7568, 59.3253)
Luminance0.1576 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240CD #6BCD40
analogous
#5B40CD #A240CD #CD40B1
triadic
#A240CD #CDA240 #40CDA2
tetradic
#A240CD #CD5B40 #6BCD40 #40B1CD
square
#A240CD #CD5B40 #6BCD40 #40B1CD
split-complementary
#A240CD #B1CD40 #40CD5B
monochromatic
#5A1E74 #802BA5 #A240CD #BA71DA #D1A1E6

Accessibility & contrast

On white

5.06
#A240CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#A240CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240CD
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240CD#FFFFFF#000000##FFFFFF
##A240CD1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D1
Deuteranopia (green-blind)
#3771CA
Tritanopia (blue-blind)
#9E5D82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a240cd;
/* rgb */ color: rgb(162, 64, 205);
/* oklch */ color: oklch(56.7% 0.215 313.6);
Tailwind
colors: {
  custom: {
    50: '#c27ddd',
    500: '#a240cd',
    950: '#000000',
  },
}
SCSS
$custom: #a240cd;
$custom-light: #c27ddd;
$custom-dark: #000000;
JSON
{
  "hex": "#a240cd",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 205
  },
  "hsl": {
    "h": 281.702,
    "s": 58.506,
    "l": 52.745
  },
  "oklch": {
    "l": 0.5672,
    "c": 0.21527,
    "h": 313.6
  },
  "luminance": 0.15756
}

Semantic roles & 50–950 ramp

primary
#A240CD
secondary
#A8D396
accent
#E24676
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A240CD

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

Preview Lab → · Contrast checker → · Palette generator →

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