#8A2DB2#8A2DB2

#8A2DB2 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 49.8% C 0.204 H 313.3°. Best body text is #FFFFFF at 6.78:1 contrast (WCAG AA passes).

Color values

HEX#8A2DB2
RGBrgb(138, 45, 178)
HSLhsl(282, 60%, 44%)
HSVhsv(282, 75%, 70%)
CMYKcmyk(22.5%, 74.7%, 0%, 30.2%)
CIE-LABlab(38.72, 58.82, -52.52)
CIE-LCHlch(38.72, 78.85, 318.24°)
OKLaboklab(49.79% 0.1401 -0.1484)
OKLCHoklch(49.79% 0.204 313.3)
XYZxyz(19.4541, 10.4950, 43.1118)
Luminance0.1049 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DB2 #55B22D
analogous
#472DB2 #8A2DB2 #B22D97
triadic
#8A2DB2 #B28A2D #2DB28A
tetradic
#8A2DB2 #B2472D #55B22D #2D97B2
square
#8A2DB2 #B2472D #55B22D #2D97B2
split-complementary
#8A2DB2 #97B22D #2DB247
monochromatic
#3E1450 #642181 #8A2DB2 #A94BD1 #C07CDE

Accessibility & contrast

On white

6.78
#8A2DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8A2DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DB2
6.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DB2#FFFFFF#000000##FFFFFF
##8A2DB21.006.783.106.78
#FFFFFF6.781.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#205DAF
Tritanopia (blue-blind)
#864B6E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2db2;
/* rgb */ color: rgb(138, 45, 178);
/* oklch */ color: oklch(49.8% 0.204 313.3);
Tailwind
colors: {
  custom: {
    50: '#b070ca',
    500: '#8a2db2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2db2;
$custom-light: #b070ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2db2",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 178
  },
  "hsl": {
    "h": 281.955,
    "s": 59.641,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49791,
    "c": 0.20404,
    "h": 313.3
  },
  "luminance": 0.10494
}

Semantic roles & 50–950 ramp

primary
#8A2DB2
secondary
#8DC675
accent
#E34574
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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