#8371C2#8371C2

#8371C2 is a mid, vivid violet. Relative luminance 0.205; OKLCH L 60.0% C 0.121 H 292.6°. Best body text is #000000 at 5.11:1 contrast (WCAG AA passes).

Color values

HEX#8371C2
RGBrgb(131, 113, 194)
HSLhsl(253, 40%, 60%)
HSVhsv(253, 42%, 76%)
CMYKcmyk(32.5%, 41.8%, 0%, 23.9%)
CIE-LABlab(52.43, 25.40, -40.01)
CIE-LCHlch(52.43, 47.39, 302.41°)
OKLaboklab(60% 0.0466 -0.1122)
OKLCHoklch(60% 0.121 292.6)
XYZxyz(25.0003, 20.5301, 53.6740)
Luminance0.2053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8371C2 #B0C271
analogous
#7188C2 #8371C2 #AB71C2
triadic
#8371C2 #C28371 #71C283
tetradic
#8371C2 #C27188 #B0C271 #71C2AB
square
#8371C2 #C27188 #B0C271 #71C2AB
split-complementary
#8371C2 #C2AB71 #88C271
monochromatic
#483781 #604AAC #8371C2 #A89CD4 #CEC7E7

Accessibility & contrast

On white

4.11
#8371C2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.11
#8371C2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #8371C2
5.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8371C2#FFFFFF#000000##000000
##8371C21.004.115.115.11
#FFFFFF4.111.0021.0021.00
#0000005.1121.001.001.00
##0000005.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#587EC5
Deuteranopia (green-blind)
#5A7CC0
Tritanopia (blue-blind)
#748090
Achromatopsia (no color)
#7D7D7D

Design tokens & code

CSS
--color: #8371c2;
/* rgb */ color: rgb(131, 113, 194);
/* oklch */ color: oklch(60.0% 0.121 292.6);
Tailwind
colors: {
  custom: {
    50: '#a99ad5',
    500: '#8371c2',
    950: '#000000',
  },
}
SCSS
$custom: #8371c2;
$custom-light: #a99ad5;
$custom-dark: #000000;
JSON
{
  "hex": "#8371c2",
  "rgb": {
    "r": 131,
    "g": 113,
    "b": 194
  },
  "hsl": {
    "h": 253.333,
    "s": 39.901,
    "l": 60.196
  },
  "oklch": {
    "l": 0.60001,
    "c": 0.12149,
    "h": 292.6
  },
  "luminance": 0.20531
}

Semantic roles & 50–950 ramp

primary
#8371C2
secondary
#D0D7B8
accent
#B33396
background
#FAF9FD
surface
#F4F2FA
border
#CECCD3
text
#100E14
muted
#7F7E83

Preview Lab

Preview with #8371C2

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

Preview Lab → · Contrast checker → · Palette generator →

#8371C2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva