#8331B2#8331B2

#8331B2 is a mid, vivid violet. Relative luminance 0.102; OKLCH L 49.3% C 0.197 H 310.1°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#8331B2
RGBrgb(131, 49, 178)
HSLhsl(278, 57%, 45%)
HSVhsv(278, 72%, 70%)
CMYKcmyk(26.4%, 72.5%, 0%, 30.2%)
CIE-LABlab(38.26, 55.83, -53.30)
CIE-LCHlch(38.26, 77.19, 316.33°)
OKLaboklab(49.26% 0.127 -0.1509)
OKLCHoklch(49.26% 0.197 310.1)
XYZxyz(18.4927, 10.2367, 43.1125)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8331B2 #60B231
analogous
#4331B2 #8331B2 #B231A0
triadic
#8331B2 #B28331 #31B283
tetradic
#8331B2 #B24331 #60B231 #31A0B2
square
#8331B2 #B24331 #60B231 #31A0B2
split-complementary
#8331B2 #A0B231 #31B243
monochromatic
#3C1752 #602482 #8331B2 #A151CF #BB81DC

Accessibility & contrast

On white

6.89
#8331B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8331B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8331B2
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8331B2#FFFFFF#000000##FFFFFF
##8331B21.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B6
Deuteranopia (green-blind)
#175BAF
Tritanopia (blue-blind)
#7C4E6F
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8331b2;
/* rgb */ color: rgb(131, 49, 178);
/* oklch */ color: oklch(49.3% 0.197 310.1);
Tailwind
colors: {
  custom: {
    50: '#ab71ca',
    500: '#8331b2',
    950: '#000000',
  },
}
SCSS
$custom: #8331b2;
$custom-light: #ab71ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8331b2",
  "rgb": {
    "r": 131,
    "g": 49,
    "b": 178
  },
  "hsl": {
    "h": 278.14,
    "s": 56.828,
    "l": 44.51
  },
  "oklch": {
    "l": 0.49261,
    "c": 0.19725,
    "h": 310.1
  },
  "luminance": 0.10236
}

Semantic roles & 50–950 ramp

primary
#8331B2
secondary
#95C579
accent
#E0487F
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8331B2

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

Preview Lab → · Contrast checker → · Palette generator →

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