#A240C2#A240C2

#A240C2 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.0% C 0.205 H 316.7°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#A240C2
RGBrgb(162, 64, 194)
HSLhsl(285, 52%, 51%)
HSVhsv(285, 67%, 76%)
CMYKcmyk(16.5%, 67%, 0%, 23.9%)
CIE-LABlab(45.97, 59.42, -50.07)
CIE-LCHlch(45.97, 77.70, 319.88°)
OKLaboklab(56.01% 0.1491 -0.1405)
OKLCHoklch(56.01% 0.205 316.7)
XYZxyz(26.4698, 15.2443, 52.5766)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A240C2 #60C240
analogous
#6140C2 #A240C2 #C240A1
triadic
#A240C2 #C2A240 #40C2A2
tetradic
#A240C2 #C26140 #60C240 #40A1C2
square
#A240C2 #C26140 #60C240 #40A1C2
split-complementary
#A240C2 #A1C240 #40C261
monochromatic
#562167 #7C3095 #A240C2 #B96ED1 #CF9DE0

Accessibility & contrast

On white

5.19
#A240C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#A240C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A240C2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A240C2#FFFFFF#000000##FFFFFF
##A240C21.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067C6
Deuteranopia (green-blind)
#4270BF
Tritanopia (blue-blind)
#A0597C
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #a240c2;
/* rgb */ color: rgb(162, 64, 194);
/* oklch */ color: oklch(56.0% 0.205 316.7);
Tailwind
colors: {
  custom: {
    50: '#c17cd5',
    500: '#a240c2',
    950: '#000000',
  },
}
SCSS
$custom: #a240c2;
$custom-light: #c17cd5;
$custom-dark: #000000;
JSON
{
  "hex": "#a240c2",
  "rgb": {
    "r": 162,
    "g": 64,
    "b": 194
  },
  "hsl": {
    "h": 285.231,
    "s": 51.587,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56008,
    "c": 0.20492,
    "h": 316.7
  },
  "luminance": 0.15243
}

Semantic roles & 50–950 ramp

primary
#A240C2
secondary
#A0CC92
accent
#DB4D70
background
#FCF7FD
surface
#F8EEFA
border
#D1C9D3
text
#130A14
muted
#827C83

Preview Lab

Preview with #A240C2

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

Preview Lab → · Contrast checker → · Palette generator →

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