#8A2DB6#8A2DB6

#8A2DB6 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.1% C 0.208 H 312.2°. Best body text is #FFFFFF at 6.71:1 contrast (WCAG AA passes).

Color values

HEX#8A2DB6
RGBrgb(138, 45, 182)
HSLhsl(281, 60%, 45%)
HSVhsv(281, 75%, 71%)
CMYKcmyk(24.2%, 75.3%, 0%, 28.6%)
CIE-LABlab(39.00, 59.65, -54.43)
CIE-LCHlch(39.00, 80.75, 317.62°)
OKLaboklab(50.08% 0.1394 -0.154)
OKLCHoklch(50.08% 0.208 312.2)
XYZxyz(19.8616, 10.6580, 45.2578)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DB6 #59B62D
analogous
#462DB6 #8A2DB6 #B62D9E
triadic
#8A2DB6 #B68A2D #2DB68A
tetradic
#8A2DB6 #B6462D #59B62D #2D9EB6
square
#8A2DB6 #B6462D #59B62D #2D9EB6
split-complementary
#8A2DB6 #9EB62D #2DB646
monochromatic
#401554 #652185 #8A2DB6 #A84DD3 #C07EDF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2DB6#FFFFFF#000000##FFFFFF
##8A2DB61.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)
#0057BA
Deuteranopia (green-blind)
#185EB3
Tritanopia (blue-blind)
#854D70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2db6;
/* rgb */ color: rgb(138, 45, 182);
/* oklch */ color: oklch(50.1% 0.208 312.2);
Tailwind
colors: {
  custom: {
    50: '#b170cd',
    500: '#8a2db6',
    950: '#000000',
  },
}
SCSS
$custom: #8a2db6;
$custom-light: #b170cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2db6",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 182
  },
  "hsl": {
    "h": 280.73,
    "s": 60.352,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50079,
    "c": 0.20774,
    "h": 312.2
  },
  "luminance": 0.10657
}

Semantic roles & 50–950 ramp

primary
#8A2DB6
secondary
#91C877
accent
#E34477
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2DB6

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

Preview Lab → · Contrast checker → · Palette generator →

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