#8A2ABB#8A2ABB

#8A2ABB is a mid, highly saturated violet. Relative luminance 0.106; OKLCH L 50.2% C 0.215 H 310.9°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#8A2ABB
RGBrgb(138, 42, 187)
HSLhsl(280, 63%, 45%)
HSVhsv(280, 78%, 73%)
CMYKcmyk(26.2%, 77.5%, 0%, 26.7%)
CIE-LABlab(38.98, 61.78, -57.41)
CIE-LCHlch(38.98, 84.34, 317.10°)
OKLaboklab(50.18% 0.1411 -0.1627)
OKLCHoklch(50.18% 0.215 310.9)
XYZxyz(20.2771, 10.6476, 47.9911)
Luminance0.1065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2ABB #5BBB2A
analogous
#412ABB #8A2ABB #BB2AA4
triadic
#8A2ABB #BB8A2A #2ABB8A
tetradic
#8A2ABB #BB412A #5BBB2A #2AA4BB
square
#8A2ABB #BB412A #5BBB2A #2AA4BB
split-complementary
#8A2ABB #A4BB2A #2ABB41
monochromatic
#401457 #651F89 #8A2ABB #A84CD7 #C07DE2

Accessibility & contrast

On white

6.71
#8A2ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8A2ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2ABB
6.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2ABB#FFFFFF#000000##FFFFFF
##8A2ABB1.006.713.136.71
#FFFFFF6.711.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BF
Deuteranopia (green-blind)
#005DB8
Tritanopia (blue-blind)
#834D72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2abb;
/* rgb */ color: rgb(138, 42, 187);
/* oklch */ color: oklch(50.2% 0.215 310.9);
Tailwind
colors: {
  custom: {
    50: '#b16fd0',
    500: '#8a2abb',
    950: '#000000',
  },
}
SCSS
$custom: #8a2abb;
$custom-light: #b16fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2abb",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 187
  },
  "hsl": {
    "h": 279.724,
    "s": 63.319,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50181,
    "c": 0.2154,
    "h": 310.9
  },
  "luminance": 0.10647
}

Semantic roles & 50–950 ramp

primary
#8A2ABB
secondary
#93CA76
accent
#E64179
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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