#8A2DB9#8A2DB9

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

Color values

HEX#8A2DB9
RGBrgb(138, 45, 185)
HSLhsl(280, 61%, 45%)
HSVhsv(280, 76%, 73%)
CMYKcmyk(25.4%, 75.7%, 0%, 27.5%)
CIE-LABlab(39.21, 60.27, -55.86)
CIE-LCHlch(39.21, 82.17, 317.18°)
OKLaboklab(50.3% 0.1389 -0.1582)
OKLCHoklch(50.3% 0.211 311.3)
XYZxyz(20.1749, 10.7833, 46.9081)
Luminance0.1078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DB9 #5CB92D
analogous
#442DB9 #8A2DB9 #B92DA2
triadic
#8A2DB9 #B98A2D #2DB98A
tetradic
#8A2DB9 #B9442D #5CB92D #2DA2B9
square
#8A2DB9 #B9442D #5CB92D #2DA2B9
split-complementary
#8A2DB9 #A2B92D #2DB944
monochromatic
#411557 #652188 #8A2DB9 #A74FD4 #C080E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2DB9#FFFFFF#000000##FFFFFF
##8A2DB91.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)
#0058BD
Deuteranopia (green-blind)
#105EB6
Tritanopia (blue-blind)
#844E72
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2db9;
/* rgb */ color: rgb(138, 45, 185);
/* oklch */ color: oklch(50.3% 0.211 311.3);
Tailwind
colors: {
  custom: {
    50: '#b170cf',
    500: '#8a2db9',
    950: '#000000',
  },
}
SCSS
$custom: #8a2db9;
$custom-light: #b170cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2db9",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 185
  },
  "hsl": {
    "h": 279.857,
    "s": 60.87,
    "l": 45.098
  },
  "oklch": {
    "l": 0.50299,
    "c": 0.21052,
    "h": 311.3
  },
  "luminance": 0.10783
}

Semantic roles & 50–950 ramp

primary
#8A2DB9
secondary
#94C979
accent
#E4447A
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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