#A331BA#A331BA

#A331BA is a mid, highly saturated purple. Relative luminance 0.135; OKLCH L 54.2% C 0.216 H 320.3°. Best body text is #FFFFFF at 5.67:1 contrast (WCAG AA passes).

Color values

HEX#A331BA
RGBrgb(163, 49, 186)
HSLhsl(290, 58%, 46%)
HSVhsv(290, 74%, 73%)
CMYKcmyk(12.4%, 73.7%, 0%, 27.1%)
CIE-LABlab(43.55, 63.95, -49.26)
CIE-LCHlch(43.55, 80.72, 322.39°)
OKLaboklab(54.15% 0.1662 -0.138)
OKLCHoklch(54.15% 0.216 320.3)
XYZxyz(25.0644, 13.5296, 47.7361)
Luminance0.1353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#A331BA #48BA31
analogous
#5E31BA #A331BA #BA318C
triadic
#A331BA #BAA331 #31BAA3
tetradic
#A331BA #BA5E31 #48BA31 #318CBA
square
#A331BA #BA5E31 #48BA31 #318CBA
split-complementary
#A331BA #8CBA31 #31BA5E
monochromatic
#4E1759 #79248A #A331BA #BD56D2 #D086DF

Accessibility & contrast

On white

5.67
#A331BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#A331BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #A331BA
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##A331BA#FFFFFF#000000##FFFFFF
##A331BA1.005.673.715.67
#FFFFFF5.671.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#3F6BB7
Tritanopia (blue-blind)
#A44C73
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #a331ba;
/* rgb */ color: rgb(163, 49, 186);
/* oklch */ color: oklch(54.2% 0.216 320.3);
Tailwind
colors: {
  custom: {
    50: '#c275cf',
    500: '#a331ba',
    950: '#000000',
  },
}
SCSS
$custom: #a331ba;
$custom-light: #c275cf;
$custom-dark: #000000;
JSON
{
  "hex": "#a331ba",
  "rgb": {
    "r": 163,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 289.927,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54153,
    "c": 0.21606,
    "h": 320.3
  },
  "luminance": 0.13528
}

Semantic roles & 50–950 ramp

primary
#A331BA
secondary
#8BC97E
accent
#E24660
background
#FCF7FC
surface
#F8EDF9
border
#D1C8D2
text
#130914
muted
#827B82

Preview Lab

Preview with #A331BA

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

Preview Lab → · Contrast checker → · Palette generator →

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