#8337AB#8337AB

#8337AB is a mid, vivid violet. Relative luminance 0.105; OKLCH L 49.4% C 0.183 H 311.6°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8337AB
RGBrgb(131, 55, 171)
HSLhsl(279, 51%, 44%)
HSVhsv(279, 68%, 67%)
CMYKcmyk(23.4%, 67.8%, 0%, 32.9%)
CIE-LABlab(38.72, 51.66, -48.40)
CIE-LCHlch(38.72, 70.79, 316.86°)
OKLaboklab(49.44% 0.1214 -0.1366)
OKLCHoklch(49.44% 0.183 311.6)
XYZxyz(18.0756, 10.4984, 39.5944)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8337AB #5FAB37
analogous
#4937AB #8337AB #AB3799
triadic
#8337AB #AB8337 #37AB83
tetradic
#8337AB #AB4937 #5FAB37 #3799AB
square
#8337AB #AB4937 #5FAB37 #3799AB
split-complementary
#8337AB #99AB37 #37AB49
monochromatic
#3C194E #60287D #8337AB #A156C9 #BB85D8

Accessibility & contrast

On white

6.78
#8337AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8337AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8337AB
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8337AB#FFFFFF#000000##FFFFFF
##8337AB1.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AE
Deuteranopia (green-blind)
#2A5DA8
Tritanopia (blue-blind)
#7E4F6C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8337ab;
/* rgb */ color: rgb(131, 55, 171);
/* oklch */ color: oklch(49.4% 0.183 311.6);
Tailwind
colors: {
  custom: {
    50: '#ab74c5',
    500: '#8337ab',
    950: '#000000',
  },
}
SCSS
$custom: #8337ab;
$custom-light: #ab74c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8337ab",
  "rgb": {
    "r": 131,
    "g": 55,
    "b": 171
  },
  "hsl": {
    "h": 279.31,
    "s": 51.327,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49435,
    "c": 0.18274,
    "h": 311.6
  },
  "luminance": 0.10498
}

Semantic roles & 50–950 ramp

primary
#8337AB
secondary
#94C17C
accent
#DB4D7E
background
#FAF7FC
surface
#F4EDF8
border
#CEC8D1
text
#100813
muted
#7F7B82

Preview Lab

Preview with #8337AB

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

Preview Lab → · Contrast checker → · Palette generator →

#8337AB Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva