#A231A2#A231A2

#A231A2 is a mid, vivid purple. Relative luminance 0.125; OKLCH L 52.5% C 0.196 H 327.9°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#A231A2
RGBrgb(162, 49, 162)
HSLhsl(300, 54%, 41%)
HSVhsv(300, 70%, 64%)
CMYKcmyk(0%, 69.8%, 0%, 36.5%)
CIE-LABlab(41.98, 59.47, -37.55)
CIE-LCHlch(41.98, 70.34, 327.73°)
OKLaboklab(52.55% 0.1659 -0.1039)
OKLCHoklch(52.55% 0.196 327.9)
XYZxyz(22.5199, 12.4882, 35.3998)
Luminance0.1249 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A231A2 #31A231
analogous
#6A31A2 #A231A2 #A2316A
triadic
#A231A2 #A2A231 #31A2A2
tetradic
#A231A2 #A26A31 #31A231 #316AA2
square
#A231A2 #A26A31 #31A231 #316AA2
split-complementary
#A231A2 #6AA231 #31A26A
monochromatic
#441544 #732373 #A231A2 #C848C8 #D677D6

Accessibility & contrast

On white

6.00
#A231A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#A231A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A231A2
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A231A2#FFFFFF#000000##FFFFFF
##A231A21.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E5AA5
Deuteranopia (green-blind)
#4E689F
Tritanopia (blue-blind)
#A74166
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a231a2;
/* rgb */ color: rgb(162, 49, 162);
/* oklch */ color: oklch(52.5% 0.196 327.9);
Tailwind
colors: {
  custom: {
    50: '#c174be',
    500: '#a231a2',
    950: '#000000',
  },
}
SCSS
$custom: #a231a2;
$custom-light: #c174be;
$custom-dark: #000000;
JSON
{
  "hex": "#a231a2",
  "rgb": {
    "r": 162,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 300,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52547,
    "c": 0.19573,
    "h": 327.9
  },
  "luminance": 0.12487
}

Semantic roles & 50–950 ramp

primary
#A231A2
secondary
#71BE71
accent
#DD4B4B
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A231A2

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

Preview Lab → · Contrast checker → · Palette generator →

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