#A231A7#A231A7

#A231A7 is a mid, vivid purple. Relative luminance 0.127; OKLCH L 52.8% C 0.200 H 326.1°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#A231A7
RGBrgb(162, 49, 167)
HSLhsl(297, 55%, 42%)
HSVhsv(297, 71%, 65%)
CMYKcmyk(3%, 70.7%, 0%, 34.5%)
CIE-LABlab(42.26, 60.33, -40.10)
CIE-LCHlch(42.26, 72.44, 326.39°)
OKLaboklab(52.84% 0.1659 -0.1113)
OKLCHoklch(52.84% 0.2 326.1)
XYZxyz(22.9732, 12.6695, 37.7872)
Luminance0.1267 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A231A7 #36A731
analogous
#6731A7 #A231A7 #A73171
triadic
#A231A7 #A7A231 #31A7A2
tetradic
#A231A7 #A76731 #36A731 #3171A7
square
#A231A7 #A76731 #36A731 #3171A7
split-complementary
#A231A7 #71A731 #31A767
monochromatic
#461548 #742378 #A231A7 #C54BCA #D47AD8

Accessibility & contrast

On white

5.94
#A231A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#A231A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A231A7
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A231A7#FFFFFF#000000##FFFFFF
##A231A71.005.943.535.94
#FFFFFF5.941.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165BAA
Deuteranopia (green-blind)
#4B69A4
Tritanopia (blue-blind)
#A64469
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a231a7;
/* rgb */ color: rgb(162, 49, 167);
/* oklch */ color: oklch(52.8% 0.200 326.1);
Tailwind
colors: {
  custom: {
    50: '#c174c1',
    500: '#a231a7',
    950: '#000000',
  },
}
SCSS
$custom: #a231a7;
$custom-light: #c174c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a231a7",
  "rgb": {
    "r": 162,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 297.458,
    "s": 54.63,
    "l": 42.353
  },
  "oklch": {
    "l": 0.52838,
    "c": 0.19978,
    "h": 326.1
  },
  "luminance": 0.12668
}

Semantic roles & 50–950 ramp

primary
#A231A7
secondary
#77C173
accent
#DE4A50
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A231A7

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

Preview Lab → · Contrast checker → · Palette generator →

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