#8A2CBC#8A2CBC

#8A2CBC is a mid, highly saturated violet. Relative luminance 0.108; OKLCH L 50.4% C 0.214 H 310.5°. Best body text is #FFFFFF at 6.63:1 contrast (WCAG AA passes).

Color values

HEX#8A2CBC
RGBrgb(138, 44, 188)
HSLhsl(279, 62%, 45%)
HSVhsv(279, 77%, 74%)
CMYKcmyk(26.6%, 76.6%, 0%, 26.3%)
CIE-LABlab(39.30, 61.27, -57.48)
CIE-LCHlch(39.30, 84.01, 316.83°)
OKLaboklab(50.43% 0.1392 -0.1629)
OKLCHoklch(50.43% 0.214 310.5)
XYZxyz(20.4572, 10.8360, 48.5811)
Luminance0.1084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CBC #5EBC2C
analogous
#422CBC #8A2CBC #BC2CA6
triadic
#8A2CBC #BC8A2C #2CBC8A
tetradic
#8A2CBC #BC422C #5EBC2C #2CA6BC
square
#8A2CBC #BC422C #5EBC2C #2CA6BC
split-complementary
#8A2CBC #A6BC2C #2CBC42
monochromatic
#411559 #66208A #8A2CBC #A74FD6 #C081E1

Accessibility & contrast

On white

6.63
#8A2CBC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.17
#8A2CBC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CBC
6.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CBC#FFFFFF#000000##FFFFFF
##8A2CBC1.006.633.176.63
#FFFFFF6.631.0021.001.00
#0000003.1721.001.0021.00
##FFFFFF6.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C0
Deuteranopia (green-blind)
#015EB9
Tritanopia (blue-blind)
#834F73
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2cbc;
/* rgb */ color: rgb(138, 44, 188);
/* oklch */ color: oklch(50.4% 0.214 310.5);
Tailwind
colors: {
  custom: {
    50: '#b170d1',
    500: '#8a2cbc',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cbc;
$custom-light: #b170d1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cbc",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 188
  },
  "hsl": {
    "h": 279.167,
    "s": 62.069,
    "l": 45.49
  },
  "oklch": {
    "l": 0.50431,
    "c": 0.21432,
    "h": 310.5
  },
  "luminance": 0.10835
}

Semantic roles & 50–950 ramp

primary
#8A2CBC
secondary
#96CA79
accent
#E5437B
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2CBC

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

Preview Lab → · Contrast checker → · Palette generator →

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