#A231AB#A231AB

#A231AB is a mid, highly saturated purple. Relative luminance 0.128; OKLCH L 53.1% C 0.203 H 324.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#A231AB
RGBrgb(162, 49, 171)
HSLhsl(296, 55%, 43%)
HSVhsv(296, 71%, 67%)
CMYKcmyk(5.3%, 71.3%, 0%, 32.9%)
CIE-LABlab(42.49, 61.03, -42.11)
CIE-LCHlch(42.49, 74.15, 325.39°)
OKLaboklab(53.08% 0.1658 -0.1172)
OKLCHoklch(53.08% 0.203 324.8)
XYZxyz(23.3487, 12.8198, 39.7648)
Luminance0.1282 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A231AB #3AAB31
analogous
#6531AB #A231AB #AB3177
triadic
#A231AB #ABA231 #31ABA2
tetradic
#A231AB #AB6531 #3AAB31 #3177AB
square
#A231AB #AB6531 #3AAB31 #3177AB
split-complementary
#A231AB #77AB31 #31AB65
monochromatic
#48164C #75237B #A231AB #C34DCC #D37DDA

Accessibility & contrast

On white

5.89
#A231AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#A231AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A231AB
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A231AB#FFFFFF#000000##FFFFFF
##A231AB1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D5CAE
Deuteranopia (green-blind)
#4969A8
Tritanopia (blue-blind)
#A5456B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a231ab;
/* rgb */ color: rgb(162, 49, 171);
/* oklch */ color: oklch(53.1% 0.203 324.8);
Tailwind
colors: {
  custom: {
    50: '#c174c4',
    500: '#a231ab',
    950: '#000000',
  },
}
SCSS
$custom: #a231ab;
$custom-light: #c174c4;
$custom-dark: #000000;
JSON
{
  "hex": "#a231ab",
  "rgb": {
    "r": 162,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 295.574,
    "s": 55.455,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53076,
    "c": 0.20307,
    "h": 324.8
  },
  "luminance": 0.12818
}

Semantic roles & 50–950 ramp

primary
#A231AB
secondary
#7BC275
accent
#DF4954
background
#FCF7FC
surface
#F8EDF8
border
#D1C8D1
text
#130913
muted
#827B82

Preview Lab

Preview with #A231AB

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

Preview Lab → · Contrast checker → · Palette generator →

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