#8A2ABD#8A2ABD

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

Color values

HEX#8A2ABD
RGBrgb(138, 42, 189)
HSLhsl(279, 64%, 45%)
HSVhsv(279, 78%, 74%)
CMYKcmyk(27%, 77.8%, 0%, 25.9%)
CIE-LABlab(39.13, 62.19, -58.35)
CIE-LCHlch(39.13, 85.28, 316.83°)
OKLaboklab(50.33% 0.1407 -0.1655)
OKLCHoklch(50.33% 0.217 310.4)
XYZxyz(20.4927, 10.7338, 49.1265)
Luminance0.1073 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2ABD #5DBD2A
analogous
#412ABD #8A2ABD #BD2AA6
triadic
#8A2ABD #BD8A2A #2ABD8A
tetradic
#8A2ABD #BD412A #5DBD2A #2AA6BD
square
#8A2ABD #BD412A #5DBD2A #2AA6BD
split-complementary
#8A2ABD #A6BD2A #2ABD41
monochromatic
#411459 #651F8B #8A2ABD #A74DD7 #C07FE3

Accessibility & contrast

On white

6.67
#8A2ABD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A2ABD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2ABD
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2ABD#FFFFFF#000000##FFFFFF
##8A2ABD1.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2abd;
/* rgb */ color: rgb(138, 42, 189);
/* oklch */ color: oklch(50.3% 0.217 310.4);
Tailwind
colors: {
  custom: {
    50: '#b16fd2',
    500: '#8a2abd',
    950: '#000000',
  },
}
SCSS
$custom: #8a2abd;
$custom-light: #b16fd2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2abd",
  "rgb": {
    "r": 138,
    "g": 42,
    "b": 189
  },
  "hsl": {
    "h": 279.184,
    "s": 63.636,
    "l": 45.294
  },
  "oklch": {
    "l": 0.50331,
    "c": 0.21722,
    "h": 310.4
  },
  "luminance": 0.10733
}

Semantic roles & 50–950 ramp

primary
#8A2ABD
secondary
#95CB78
accent
#E7417B
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110814
muted
#807B83

Preview Lab

Preview with #8A2ABD

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

Preview Lab → · Contrast checker → · Palette generator →

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