#8A2BB6#8A2BB6

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

Color values

HEX#8A2BB6
RGBrgb(138, 43, 182)
HSLhsl(281, 62%, 44%)
HSVhsv(281, 76%, 71%)
CMYKcmyk(24.2%, 76.4%, 0%, 28.6%)
CIE-LABlab(38.74, 60.38, -54.85)
CIE-LCHlch(38.74, 81.58, 317.75°)
OKLaboklab(49.9% 0.1412 -0.1552)
OKLCHoklch(49.9% 0.21 312.3)
XYZxyz(19.7871, 10.5090, 45.2330)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BB6 #57B62B
analogous
#442BB6 #8A2BB6 #B62B9D
triadic
#8A2BB6 #B68A2B #2BB68A
tetradic
#8A2BB6 #B6442B #57B62B #2B9DB6
square
#8A2BB6 #B6442B #57B62B #2B9DB6
split-complementary
#8A2BB6 #9DB62B #2BB644
monochromatic
#3F1453 #641F84 #8A2BB6 #A84AD4 #C07BE0

Accessibility & contrast

On white

6.77
#8A2BB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2BB6
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BB6#FFFFFF#000000##FFFFFF
##8A2BB61.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BA
Deuteranopia (green-blind)
#155DB3
Tritanopia (blue-blind)
#854C6F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2bb6;
/* rgb */ color: rgb(138, 43, 182);
/* oklch */ color: oklch(49.9% 0.210 312.3);
Tailwind
colors: {
  custom: {
    50: '#b16fcd',
    500: '#8a2bb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bb6;
$custom-light: #b16fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bb6",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 182
  },
  "hsl": {
    "h": 281.007,
    "s": 61.778,
    "l": 44.118
  },
  "oklch": {
    "l": 0.49898,
    "c": 0.20984,
    "h": 312.3
  },
  "luminance": 0.10508
}

Semantic roles & 50–950 ramp

primary
#8A2BB6
secondary
#8FC875
accent
#E54376
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2BB6

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

Preview Lab → · Contrast checker → · Palette generator →

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