#8A2DB3#8A2DB3

#8A2DB3 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.9% C 0.205 H 313.0°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#8A2DB3
RGBrgb(138, 45, 179)
HSLhsl(282, 60%, 44%)
HSVhsv(282, 75%, 70%)
CMYKcmyk(22.9%, 74.9%, 0%, 29.8%)
CIE-LABlab(38.79, 59.02, -53.00)
CIE-LCHlch(38.79, 79.33, 318.08°)
OKLaboklab(49.86% 0.1399 -0.1498)
OKLCHoklch(49.86% 0.205 313)
XYZxyz(19.5549, 10.5353, 43.6425)
Luminance0.1053 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DB3 #56B32D
analogous
#472DB3 #8A2DB3 #B32D99
triadic
#8A2DB3 #B38A2D #2DB38A
tetradic
#8A2DB3 #B3472D #56B32D #2D99B3
square
#8A2DB3 #B3472D #56B32D #2D99B3
split-complementary
#8A2DB3 #99B32D #2DB347
monochromatic
#3F1451 #642182 #8A2DB3 #A94BD2 #C07CDE

Accessibility & contrast

On white

6.76
#8A2DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8A2DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DB3
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DB3#FFFFFF#000000##FFFFFF
##8A2DB31.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057B7
Deuteranopia (green-blind)
#1E5DB0
Tritanopia (blue-blind)
#864B6E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2db3;
/* rgb */ color: rgb(138, 45, 179);
/* oklch */ color: oklch(49.9% 0.205 313.0);
Tailwind
colors: {
  custom: {
    50: '#b170ca',
    500: '#8a2db3',
    950: '#000000',
  },
}
SCSS
$custom: #8a2db3;
$custom-light: #b170ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2db3",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 179
  },
  "hsl": {
    "h": 281.642,
    "s": 59.821,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49863,
    "c": 0.20496,
    "h": 313
  },
  "luminance": 0.10535
}

Semantic roles & 50–950 ramp

primary
#8A2DB3
secondary
#8EC775
accent
#E34575
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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