#8A2CBB#8A2CBB

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

Color values

HEX#8A2CBB
RGBrgb(138, 44, 187)
HSLhsl(279, 62%, 45%)
HSVhsv(279, 76%, 73%)
CMYKcmyk(26.2%, 76.5%, 0%, 26.7%)
CIE-LABlab(39.23, 61.06, -57.01)
CIE-LCHlch(39.23, 83.54, 316.97°)
OKLaboklab(50.36% 0.1394 -0.1615)
OKLCHoklch(50.36% 0.213 310.8)
XYZxyz(20.3498, 10.7930, 48.0153)
Luminance0.1079 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CBB #5DBB2C
analogous
#432CBB #8A2CBB #BB2CA4
triadic
#8A2CBB #BB8A2C #2CBB8A
tetradic
#8A2CBB #BB432C #5DBB2C #2CA4BB
square
#8A2CBB #BB432C #5DBB2C #2CA4BB
split-complementary
#8A2CBB #A4BB2C #2CBB43
monochromatic
#411558 #652089 #8A2CBB #A74FD6 #C080E1

Accessibility & contrast

On white

6.65
#8A2CBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.16
#8A2CBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CBB
6.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CBB#FFFFFF#000000##FFFFFF
##8A2CBB1.006.653.166.65
#FFFFFF6.651.0021.001.00
#0000003.1621.001.0021.00
##FFFFFF6.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#065EB8
Tritanopia (blue-blind)
#834E72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2cbb;
/* rgb */ color: rgb(138, 44, 187);
/* oklch */ color: oklch(50.4% 0.213 310.8);
Tailwind
colors: {
  custom: {
    50: '#b170d0',
    500: '#8a2cbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cbb;
$custom-light: #b170d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cbb",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 187
  },
  "hsl": {
    "h": 279.441,
    "s": 61.905,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50356,
    "c": 0.21339,
    "h": 310.8
  },
  "luminance": 0.10792
}

Semantic roles & 50–950 ramp

primary
#8A2CBB
secondary
#95CA79
accent
#E5437A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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