#A240CC#A240CC

#A240CC is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 56.7% C 0.214 H 313.8°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#A240CC
RGBrgb(162, 64, 204)
HSLhsl(282, 58%, 53%)
HSVhsv(282, 69%, 80%)
CMYKcmyk(20.6%, 68.6%, 0%, 20%)
CIE-LABlab(46.59, 61.44, -54.85)
CIE-LCHlch(46.59, 82.36, 318.24°)
OKLaboklab(56.65% 0.1485 -0.1546)
OKLCHoklch(56.65% 0.214 313.8)
XYZxyz(27.6309, 15.7087, 58.6916)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240CC #6ACC40
analogous
#5C40CC #A240CC #CC40B0
triadic
#A240CC #CCA240 #40CCA2
tetradic
#A240CC #CC5C40 #6ACC40 #40B0CC
square
#A240CC #CC5C40 #6ACC40 #40B0CC
split-complementary
#A240CC #B0CC40 #40CC5C
monochromatic
#5A1F73 #7F2CA3 #A240CC #BA70D9 #D1A1E6

Accessibility & contrast

On white

5.07
#A240CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#A240CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240CC
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240CC#FFFFFF#000000##FFFFFF
##A240CC1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#3871C9
Tritanopia (blue-blind)
#9E5D81
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #a240cc;
/* rgb */ color: rgb(162, 64, 204);
/* oklch */ color: oklch(56.7% 0.214 313.8);
Tailwind
colors: {
  custom: {
    50: '#c27cdc',
    500: '#a240cc',
    950: '#000000',
  },
}
SCSS
$custom: #a240cc;
$custom-light: #c27cdc;
$custom-dark: #000000;
JSON
{
  "hex": "#a240cc",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 204
  },
  "hsl": {
    "h": 282,
    "s": 57.851,
    "l": 52.549
  },
  "oklch": {
    "l": 0.56654,
    "c": 0.21432,
    "h": 313.8
  },
  "luminance": 0.15708
}

Semantic roles & 50–950 ramp

primary
#A240CC
secondary
#A8D295
accent
#E14775
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A240CC

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

Preview Lab → · Contrast checker → · Palette generator →

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