#A231A6#A231A6

#A231A6 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.8% C 0.199 H 326.5°. Best body text is #FFFFFF at 5.96:1 contrast (WCAG AA passes).

Color values

HEX#A231A6
RGBrgb(162, 49, 166)
HSLhsl(298, 54%, 42%)
HSVhsv(298, 70%, 65%)
CMYKcmyk(2.4%, 70.5%, 0%, 34.9%)
CIE-LABlab(42.20, 60.16, -39.59)
CIE-LCHlch(42.20, 72.02, 326.65°)
OKLaboklab(52.78% 0.1659 -0.1099)
OKLCHoklch(52.78% 0.199 326.5)
XYZxyz(22.8811, 12.6327, 37.3022)
Luminance0.1263 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A231A6 #35A631
analogous
#6831A6 #A231A6 #A6316F
triadic
#A231A6 #A6A231 #31A6A2
tetradic
#A231A6 #A66831 #35A631 #316FA6
square
#A231A6 #A66831 #35A631 #316FA6
split-complementary
#A231A6 #6FA631 #31A668
monochromatic
#461547 #742377 #A231A6 #C54ACA #D47AD8

Accessibility & contrast

On white

5.96
#A231A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #A231A6
5.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A231A6#FFFFFF#000000##FFFFFF
##A231A61.005.963.535.96
#FFFFFF5.961.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185AA9
Deuteranopia (green-blind)
#4C69A3
Tritanopia (blue-blind)
#A64368
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #a231a6;
/* rgb */ color: rgb(162, 49, 166);
/* oklch */ color: oklch(52.8% 0.199 326.5);
Tailwind
colors: {
  custom: {
    50: '#c174c1',
    500: '#a231a6',
    950: '#000000',
  },
}
SCSS
$custom: #a231a6;
$custom-light: #c174c1;
$custom-dark: #000000;
JSON
{
  "hex": "#a231a6",
  "rgb": {
    "r": 162,
    "g": 49,
    "b": 166
  },
  "hsl": {
    "h": 297.949,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.52779,
    "c": 0.19898,
    "h": 326.5
  },
  "luminance": 0.12631
}

Semantic roles & 50–950 ramp

primary
#A231A6
secondary
#75C073
accent
#DE4A4F
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A231A6

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

Preview Lab → · Contrast checker → · Palette generator →

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