#8A2CBD#8A2CBD

#8A2CBD is a mid, highly saturated violet. Relative luminance 0.109; OKLCH L 50.5% C 0.215 H 310.2°. Best body text is #FFFFFF at 6.61:1 contrast (WCAG AA passes).

Color values

HEX#8A2CBD
RGBrgb(138, 44, 189)
HSLhsl(279, 62%, 46%)
HSVhsv(279, 77%, 74%)
CMYKcmyk(27%, 76.7%, 0%, 25.9%)
CIE-LABlab(39.38, 61.48, -57.95)
CIE-LCHlch(39.38, 84.48, 316.70°)
OKLaboklab(50.51% 0.139 -0.1643)
OKLCHoklch(50.51% 0.215 310.2)
XYZxyz(20.5654, 10.8792, 49.1508)
Luminance0.1088 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CBD #5FBD2C
analogous
#422CBD #8A2CBD #BD2CA7
triadic
#8A2CBD #BD8A2C #2CBD8A
tetradic
#8A2CBD #BD422C #5FBD2C #2CA7BD
square
#8A2CBD #BD422C #5FBD2C #2CA7BD
split-complementary
#8A2CBD #A7BD2C #2CBD42
monochromatic
#42155A #66208B #8A2CBD #A750D6 #C082E2

Accessibility & contrast

On white

6.61
#8A2CBD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.18
#8A2CBD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CBD
6.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CBD#FFFFFF#000000##FFFFFF
##8A2CBD1.006.613.186.61
#FFFFFF6.611.0021.001.00
#0000003.1821.001.0021.00
##FFFFFF6.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C1
Deuteranopia (green-blind)
#005EBA
Tritanopia (blue-blind)
#834F74
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #8a2cbd;
/* rgb */ color: rgb(138, 44, 189);
/* oklch */ color: oklch(50.5% 0.215 310.2);
Tailwind
colors: {
  custom: {
    50: '#b170d2',
    500: '#8a2cbd',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cbd;
$custom-light: #b170d2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cbd",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 189
  },
  "hsl": {
    "h": 278.897,
    "s": 62.232,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50505,
    "c": 0.21524,
    "h": 310.2
  },
  "luminance": 0.10879
}

Semantic roles & 50–950 ramp

primary
#8A2CBD
secondary
#96CB7A
accent
#E5427C
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2CBD

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

Preview Lab → · Contrast checker → · Palette generator →

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