#8331A2#8331A2

#8331A2 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.1% C 0.182 H 315.2°. Best body text is #FFFFFF at 7.18:1 contrast (WCAG AA passes).

Color values

HEX#8331A2
RGBrgb(131, 49, 162)
HSLhsl(284, 54%, 41%)
HSVhsv(284, 70%, 64%)
CMYKcmyk(19.1%, 69.8%, 0%, 36.5%)
CIE-LABlab(37.17, 52.41, -45.51)
CIE-LCHlch(37.17, 69.41, 319.03°)
OKLaboklab(48.14% 0.1288 -0.1281)
OKLCHoklch(48.14% 0.182 315.2)
XYZxyz(16.9789, 9.6312, 35.1400)
Luminance0.0963 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8331A2 #50A231
analogous
#4B31A2 #8331A2 #A23189
triadic
#8331A2 #A28331 #31A283
tetradic
#8331A2 #A24B31 #50A231 #3189A2
square
#8331A2 #A24B31 #50A231 #3189A2
split-complementary
#8331A2 #89A231 #31A24B
monochromatic
#371544 #5D2373 #8331A2 #A548C8 #BC77D6

Accessibility & contrast

On white

7.18
#8331A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8331A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8331A2
7.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8331A2#FFFFFF#000000##FFFFFF
##8331A21.007.182.937.18
#FFFFFF7.181.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A5
Deuteranopia (green-blind)
#2E5A9F
Tritanopia (blue-blind)
#814866
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8331a2;
/* rgb */ color: rgb(131, 49, 162);
/* oklch */ color: oklch(48.1% 0.182 315.2);
Tailwind
colors: {
  custom: {
    50: '#ab70be',
    500: '#8331a2',
    950: '#000000',
  },
}
SCSS
$custom: #8331a2;
$custom-light: #ab70be;
$custom-dark: #000000;
JSON
{
  "hex": "#8331a2",
  "rgb": {
    "r": 131,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 283.54,
    "s": 53.555,
    "l": 41.373
  },
  "oklch": {
    "l": 0.48136,
    "c": 0.18165,
    "h": 315.2
  },
  "luminance": 0.09631
}

Semantic roles & 50–950 ramp

primary
#8331A2
secondary
#86BE71
accent
#DD4B73
background
#FAF7FB
surface
#F4EDF7
border
#CEC8D0
text
#100812
muted
#7F7B81

Preview Lab

Preview with #8331A2

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

Preview Lab → · Contrast checker → · Palette generator →

#8331A2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva