#8A2BC1#8A2BC1

#8A2BC1 is a mid, highly saturated violet. Relative luminance 0.110; OKLCH L 50.7% C 0.220 H 309.2°. Best body text is #FFFFFF at 6.57:1 contrast (WCAG AA passes).

Color values

HEX#8A2BC1
RGBrgb(138, 43, 193)
HSLhsl(278, 64%, 46%)
HSVhsv(278, 78%, 76%)
CMYKcmyk(28.5%, 77.7%, 0%, 24.3%)
CIE-LABlab(39.55, 62.68, -60.01)
CIE-LCHlch(39.55, 86.78, 316.25°)
OKLaboklab(50.72% 0.1391 -0.1704)
OKLCHoklch(50.72% 0.22 309.2)
XYZxyz(20.9688, 10.9817, 51.4568)
Luminance0.1098 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BC1 #62C12B
analogous
#3F2BC1 #8A2BC1 #C12BAD
triadic
#8A2BC1 #C18A2B #2BC18A
tetradic
#8A2BC1 #C13F2B #62C12B #2BADC1
square
#8A2BC1 #C13F2B #62C12B #2BADC1
split-complementary
#8A2BC1 #ADC12B #2BC13F
monochromatic
#42155D #66208F #8A2BC1 #A751D8 #C083E3

Accessibility & contrast

On white

6.57
#8A2BC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#8A2BC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BC1
6.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BC1#FFFFFF#000000##FFFFFF
##8A2BC11.006.573.206.57
#FFFFFF6.571.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C5
Deuteranopia (green-blind)
#005EBE
Tritanopia (blue-blind)
#825176
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2bc1;
/* rgb */ color: rgb(138, 43, 193);
/* oklch */ color: oklch(50.7% 0.220 309.2);
Tailwind
colors: {
  custom: {
    50: '#b16fd5',
    500: '#8a2bc1',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bc1;
$custom-light: #b16fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bc1",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 193
  },
  "hsl": {
    "h": 278,
    "s": 63.559,
    "l": 46.275
  },
  "oklch": {
    "l": 0.50721,
    "c": 0.21991,
    "h": 309.2
  },
  "luminance": 0.10981
}

Semantic roles & 50–950 ramp

primary
#8A2BC1
secondary
#99CC7B
accent
#E7417E
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2BC1

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

Preview Lab → · Contrast checker → · Palette generator →

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