#A231A4#A231A4

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

Color values

HEX#A231A4
RGBrgb(162, 49, 164)
HSLhsl(299, 54%, 42%)
HSVhsv(299, 70%, 64%)
CMYKcmyk(1.2%, 70.1%, 0%, 35.7%)
CIE-LABlab(42.09, 59.81, -38.58)
CIE-LCHlch(42.09, 71.17, 327.18°)
OKLaboklab(52.66% 0.1659 -0.1069)
OKLCHoklch(52.66% 0.197 327.2)
XYZxyz(22.6991, 12.5599, 36.3435)
Luminance0.1256 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A231A4 #33A431
analogous
#6931A4 #A231A4 #A4316C
triadic
#A231A4 #A4A231 #31A4A2
tetradic
#A231A4 #A46931 #33A431 #316CA4
square
#A231A4 #A46931 #33A431 #316CA4
split-complementary
#A231A4 #6CA431 #31A469
monochromatic
#451546 #732375 #A231A4 #C749C9 #D579D7

Accessibility & contrast

On white

5.98
#A231A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#A231A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A231A4
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A231A4#FFFFFF#000000##FFFFFF
##A231A41.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5AA7
Deuteranopia (green-blind)
#4D68A1
Tritanopia (blue-blind)
#A74267
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #a231a4;
/* rgb */ color: rgb(162, 49, 164);
/* oklch */ color: oklch(52.7% 0.197 327.2);
Tailwind
colors: {
  custom: {
    50: '#c174bf',
    500: '#a231a4',
    950: '#000000',
  },
}
SCSS
$custom: #a231a4;
$custom-light: #c174bf;
$custom-dark: #000000;
JSON
{
  "hex": "#a231a4",
  "rgb": {
    "r": 162,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 298.957,
    "s": 53.991,
    "l": 41.765
  },
  "oklch": {
    "l": 0.52662,
    "c": 0.19735,
    "h": 327.2
  },
  "luminance": 0.12558
}

Semantic roles & 50–950 ramp

primary
#A231A4
secondary
#73BF72
accent
#DD4A4D
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A231A4

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

Preview Lab → · Contrast checker → · Palette generator →

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