#8331D4#8331D4

#8331D4 is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.9% C 0.231 H 301.3°. Best body text is #FFFFFF at 6.26:1 contrast (WCAG AA passes).

Color values

HEX#8331D4
RGBrgb(131, 49, 212)
HSLhsl(270, 65%, 51%)
HSVhsv(270, 77%, 83%)
CMYKcmyk(38.2%, 76.9%, 0%, 16.9%)
CIE-LABlab(40.86, 63.49, -68.95)
CIE-LCHlch(40.86, 93.73, 312.64°)
OKLaboklab(51.9% 0.12 -0.1969)
OKLCHoklch(51.9% 0.231 301.3)
XYZxyz(22.3391, 11.7752, 63.3705)
Luminance0.1177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8331D4 #82D431
analogous
#3131D4 #8331D4 #D431D3
triadic
#8331D4 #D48331 #31D483
tetradic
#8331D4 #D43131 #82D431 #31D3D4
square
#8331D4 #D43131 #82D431 #31D3D4
split-complementary
#8331D4 #D3D431 #31D431
monochromatic
#461873 #6423A5 #8331D4 #A164DF #C096E9

Accessibility & contrast

On white

6.26
#8331D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8331D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8331D4
6.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8331D4#FFFFFF#000000##FFFFFF
##8331D41.006.263.366.26
#FFFFFF6.261.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD8
Deuteranopia (green-blind)
#005FD1
Tritanopia (blue-blind)
#715C82
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8331d4;
/* rgb */ color: rgb(131, 49, 212);
/* oklch */ color: oklch(51.9% 0.231 301.3);
Tailwind
colors: {
  custom: {
    50: '#ae72e2',
    500: '#8331d4',
    950: '#000000',
  },
}
SCSS
$custom: #8331d4;
$custom-light: #ae72e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8331d4",
  "rgb": {
    "r": 131,
    "g": 49,
    "b": 212
  },
  "hsl": {
    "h": 270.184,
    "s": 65.462,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51898,
    "c": 0.2306,
    "h": 301.3
  },
  "luminance": 0.11775
}

Semantic roles & 50–950 ramp

primary
#8331D4
secondary
#B0D48C
accent
#E83F93
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #8331D4

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

Preview Lab → · Contrast checker → · Palette generator →

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