#A231A5#A231A5

#A231A5 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.7% C 0.198 H 326.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#A231A5
RGBrgb(162, 49, 165)
HSLhsl(298, 54%, 42%)
HSVhsv(298, 70%, 65%)
CMYKcmyk(1.8%, 70.3%, 0%, 35.3%)
CIE-LABlab(42.15, 59.99, -39.08)
CIE-LCHlch(42.15, 71.59, 326.91°)
OKLaboklab(52.72% 0.1659 -0.1084)
OKLCHoklch(52.72% 0.198 326.8)
XYZxyz(22.7897, 12.5962, 36.8210)
Luminance0.1260 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A231A5 #34A531
analogous
#6831A5 #A231A5 #A5316E
triadic
#A231A5 #A5A231 #31A5A2
tetradic
#A231A5 #A56831 #34A531 #316EA5
square
#A231A5 #A56831 #34A531 #316EA5
split-complementary
#A231A5 #6EA531 #31A568
monochromatic
#451547 #742376 #A231A5 #C64AC9 #D579D7

Accessibility & contrast

On white

5.97
#A231A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#A231A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A231A5
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A231A5#FFFFFF#000000##FFFFFF
##A231A51.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5AA8
Deuteranopia (green-blind)
#4D68A2
Tritanopia (blue-blind)
#A74368
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a231a5;
/* rgb */ color: rgb(162, 49, 165);
/* oklch */ color: oklch(52.7% 0.198 326.8);
Tailwind
colors: {
  custom: {
    50: '#c174c0',
    500: '#a231a5',
    950: '#000000',
  },
}
SCSS
$custom: #a231a5;
$custom-light: #c174c0;
$custom-dark: #000000;
JSON
{
  "hex": "#a231a5",
  "rgb": {
    "r": 162,
    "g": 49,
    "b": 165
  },
  "hsl": {
    "h": 298.448,
    "s": 54.206,
    "l": 41.961
  },
  "oklch": {
    "l": 0.5272,
    "c": 0.19816,
    "h": 326.8
  },
  "luminance": 0.12595
}

Semantic roles & 50–950 ramp

primary
#A231A5
secondary
#74C072
accent
#DE4A4E
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A231A5

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

Preview Lab → · Contrast checker → · Palette generator →

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