#A240CE#A240CE

#A240CE is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 56.8% C 0.216 H 313.3°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#A240CE
RGBrgb(162, 64, 206)
HSLhsl(281, 59%, 53%)
HSVhsv(281, 69%, 81%)
CMYKcmyk(21.4%, 68.9%, 0%, 19.2%)
CIE-LABlab(46.72, 61.85, -55.80)
CIE-LCHlch(46.72, 83.30, 317.94°)
OKLaboklab(56.79% 0.1483 -0.1573)
OKLCHoklch(56.79% 0.216 313.3)
XYZxyz(27.8723, 15.8053, 59.9630)
Luminance0.1580 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240CE #6CCE40
analogous
#5B40CE #A240CE #CE40B3
triadic
#A240CE #CEA240 #40CEA2
tetradic
#A240CE #CE5B40 #6CCE40 #40B3CE
square
#A240CE #CE5B40 #6CCE40 #40B3CE
split-complementary
#A240CE #B3CE40 #40CE5B
monochromatic
#5A1E75 #802BA6 #A240CE #BA71DA #D1A1E7

Accessibility & contrast

On white

5.05
#A240CE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#A240CE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240CE
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240CE#FFFFFF#000000##FFFFFF
##A240CE1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AD2
Deuteranopia (green-blind)
#3571CB
Tritanopia (blue-blind)
#9D5D82
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #a240ce;
/* rgb */ color: rgb(162, 64, 206);
/* oklch */ color: oklch(56.8% 0.216 313.3);
Tailwind
colors: {
  custom: {
    50: '#c27dde',
    500: '#a240ce',
    950: '#000000',
  },
}
SCSS
$custom: #a240ce;
$custom-light: #c27dde;
$custom-dark: #000000;
JSON
{
  "hex": "#a240ce",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 206
  },
  "hsl": {
    "h": 281.408,
    "s": 59.167,
    "l": 52.941
  },
  "oklch": {
    "l": 0.56786,
    "c": 0.21621,
    "h": 313.3
  },
  "luminance": 0.15804
}

Semantic roles & 50–950 ramp

primary
#A240CE
secondary
#A9D496
accent
#E24576
background
#FCF7FD
surface
#F8EEFB
border
#D1C9D4
text
#130A15
muted
#827C83

Preview Lab

Preview with #A240CE

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

Preview Lab → · Contrast checker → · Palette generator →

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