#8A2ABC#8A2ABC

#8A2ABC is a mid, highly saturated violet. Relative luminance 0.107; OKLCH L 50.3% C 0.216 H 310.7°. Best body text is #FFFFFF at 6.69:1 contrast (WCAG AA passes).

Color values

HEX#8A2ABC
RGBrgb(138, 42, 188)
HSLhsl(279, 63%, 45%)
HSVhsv(279, 78%, 74%)
CMYKcmyk(26.6%, 77.7%, 0%, 26.3%)
CIE-LABlab(39.05, 61.99, -57.88)
CIE-LCHlch(39.05, 84.81, 316.96°)
OKLaboklab(50.26% 0.1409 -0.1641)
OKLCHoklch(50.26% 0.216 310.7)
XYZxyz(20.3845, 10.6905, 48.5569)
Luminance0.1069 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2ABC #5CBC2A
analogous
#412ABC #8A2ABC #BC2AA5
triadic
#8A2ABC #BC8A2A #2ABC8A
tetradic
#8A2ABC #BC412A #5CBC2A #2AA5BC
square
#8A2ABC #BC412A #5CBC2A #2AA5BC
split-complementary
#8A2ABC #A5BC2A #2ABC41
monochromatic
#411458 #651F8A #8A2ABC #A74CD7 #C07EE2

Accessibility & contrast

On white

6.69
#8A2ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.14
#8A2ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2ABC
6.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2ABC#FFFFFF#000000##FFFFFF
##8A2ABC1.006.693.146.69
#FFFFFF6.691.0021.001.00
#0000003.1421.001.0021.00
##FFFFFF6.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C0
Deuteranopia (green-blind)
#005DB9
Tritanopia (blue-blind)
#834E73
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2abc;
/* rgb */ color: rgb(138, 42, 188);
/* oklch */ color: oklch(50.3% 0.216 310.7);
Tailwind
colors: {
  custom: {
    50: '#b16fd1',
    500: '#8a2abc',
    950: '#000000',
  },
}
SCSS
$custom: #8a2abc;
$custom-light: #b16fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2abc",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 188
  },
  "hsl": {
    "h": 279.452,
    "s": 63.478,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50256,
    "c": 0.21631,
    "h": 310.7
  },
  "luminance": 0.1069
}

Semantic roles & 50–950 ramp

primary
#8A2ABC
secondary
#94CB77
accent
#E7417A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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