#A631A2#A631A2

#A631A2 is a mid, vivid purple. Relative luminance 0.129; OKLCH L 53.1% C 0.198 H 329.4°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#A631A2
RGBrgb(166, 49, 162)
HSLhsl(302, 54%, 42%)
HSVhsv(302, 70%, 65%)
CMYKcmyk(0%, 70.5%, 2.4%, 34.9%)
CIE-LABlab(42.63, 60.40, -36.48)
CIE-LCHlch(42.63, 70.56, 328.87°)
OKLaboklab(53.14% 0.1702 -0.1007)
OKLCHoklch(53.14% 0.198 329.4)
XYZxyz(23.3456, 12.9140, 35.4385)
Luminance0.1291 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A631A2 #31A635
analogous
#6F31A6 #A631A2 #A63168
triadic
#A631A2 #A2A631 #31A2A6
tetradic
#A631A2 #A66F31 #31A635 #3168A6
square
#A631A2 #A66F31 #31A635 #3168A6
split-complementary
#A631A2 #68A631 #31A66F
monochromatic
#471546 #772374 #A631A2 #CA4AC5 #D87AD4

Accessibility & contrast

On white

5.86
#A631A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#A631A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A631A2
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A631A2#FFFFFF#000000##FFFFFF
##A631A21.005.863.585.86
#FFFFFF5.861.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225BA5
Deuteranopia (green-blind)
#526A9F
Tritanopia (blue-blind)
#AC4066
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a631a2;
/* rgb */ color: rgb(166, 49, 162);
/* oklch */ color: oklch(53.1% 0.198 329.4);
Tailwind
colors: {
  custom: {
    50: '#c474be',
    500: '#a631a2',
    950: '#000000',
  },
}
SCSS
$custom: #a631a2;
$custom-light: #c474be;
$custom-dark: #000000;
JSON
{
  "hex": "#a631a2",
  "rgb": {
    "r": 166,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 302.051,
    "s": 54.419,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53142,
    "c": 0.1978,
    "h": 329.4
  },
  "luminance": 0.12912
}

Semantic roles & 50–950 ramp

primary
#A631A2
secondary
#73C075
accent
#DE4F4A
background
#FCF7FB
surface
#F8EDF7
border
#D1C8D0
text
#130912
muted
#827B81

Preview Lab

Preview with #A631A2

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

Preview Lab → · Contrast checker → · Palette generator →

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