#8B31BC#8B31BC

#8B31BC is a mid, highly saturated violet. Relative luminance 0.113; OKLCH L 51.0% C 0.209 H 310.5°. Best body text is #FFFFFF at 6.44:1 contrast (WCAG AA passes).

Color values

HEX#8B31BC
RGBrgb(139, 49, 188)
HSLhsl(279, 59%, 46%)
HSVhsv(279, 74%, 74%)
CMYKcmyk(26.1%, 73.9%, 0%, 26.3%)
CIE-LABlab(40.11, 59.56, -56.16)
CIE-LCHlch(40.11, 81.86, 316.68°)
OKLaboklab(51.03% 0.136 -0.1591)
OKLCHoklch(51.03% 0.209 310.5)
XYZxyz(20.8211, 11.3169, 48.6548)
Luminance0.1132 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B31BC #62BC31
analogous
#4631BC #8B31BC #BC31A8
triadic
#8B31BC #BC8B31 #31BC8B
tetradic
#8B31BC #BC4631 #62BC31 #31A8BC
square
#8B31BC #BC4631 #62BC31 #31A8BC
split-complementary
#8B31BC #A8BC31 #31BC46
monochromatic
#43185B #67248B #8B31BC #A757D3 #C188E0

Accessibility & contrast

On white

6.44
#8B31BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.26
#8B31BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B31BC
6.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B31BC#FFFFFF#000000##FFFFFF
##8B31BC1.006.443.266.44
#FFFFFF6.441.0021.001.00
#0000003.2621.001.0021.00
##FFFFFF6.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC0
Deuteranopia (green-blind)
#1360B9
Tritanopia (blue-blind)
#845174
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8b31bc;
/* rgb */ color: rgb(139, 49, 188);
/* oklch */ color: oklch(51.0% 0.209 310.5);
Tailwind
colors: {
  custom: {
    50: '#b272d1',
    500: '#8b31bc',
    950: '#000000',
  },
}
SCSS
$custom: #8b31bc;
$custom-light: #b272d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8b31bc",
  "rgb": {
    "r": 139,
    "g": 49,
    "b": 188
  },
  "hsl": {
    "h": 278.849,
    "s": 58.65,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51029,
    "c": 0.2093,
    "h": 310.5
  },
  "luminance": 0.11316
}

Semantic roles & 50–950 ramp

primary
#8B31BC
secondary
#99CA7F
accent
#E2467D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8B31BC

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

Preview Lab → · Contrast checker → · Palette generator →

#8B31BC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva