#A031B7#A031B7

#A031B7 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.5% C 0.212 H 320.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#A031B7
RGBrgb(160, 49, 183)
HSLhsl(290, 58%, 45%)
HSVhsv(290, 73%, 72%)
CMYKcmyk(12.6%, 73.2%, 0%, 28.2%)
CIE-LABlab(42.90, 62.78, -48.57)
CIE-LCHlch(42.90, 79.37, 322.27°)
OKLaboklab(53.54% 0.1629 -0.1361)
OKLCHoklch(53.54% 0.212 320.1)
XYZxyz(24.1417, 13.0903, 46.0456)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A031B7 #48B731
analogous
#5D31B7 #A031B7 #B7318B
triadic
#A031B7 #B7A031 #31B7A0
tetradic
#A031B7 #B75D31 #48B731 #318BB7
square
#A031B7 #B75D31 #48B731 #318BB7
split-complementary
#A031B7 #8BB731 #31B75D
monochromatic
#4C1756 #762487 #A031B7 #BC54D1 #CF84DE

Accessibility & contrast

On white

5.80
#A031B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#A031B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A031B7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A031B7#FFFFFF#000000##FFFFFF
##A031B71.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#3E69B4
Tritanopia (blue-blind)
#A14B72
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #a031b7;
/* rgb */ color: rgb(160, 49, 183);
/* oklch */ color: oklch(53.5% 0.212 320.1);
Tailwind
colors: {
  custom: {
    50: '#c074cd',
    500: '#a031b7',
    950: '#000000',
  },
}
SCSS
$custom: #a031b7;
$custom-light: #c074cd;
$custom-dark: #000000;
JSON
{
  "hex": "#a031b7",
  "rgb": {
    "r": 160,
    "g": 49,
    "b": 183
  },
  "hsl": {
    "h": 289.701,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.53537,
    "c": 0.21229,
    "h": 320.1
  },
  "luminance": 0.13089
}

Semantic roles & 50–950 ramp

primary
#A031B7
secondary
#89C87C
accent
#E14761
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130913
muted
#827B82

Preview Lab

Preview with #A031B7

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

Preview Lab → · Contrast checker → · Palette generator →

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