#8A2EB6#8A2EB6

#8A2EB6 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.2% C 0.207 H 312.1°. Best body text is #FFFFFF at 6.67:1 contrast (WCAG AA passes).

Color values

HEX#8A2EB6
RGBrgb(138, 46, 182)
HSLhsl(281, 60%, 45%)
HSVhsv(281, 75%, 71%)
CMYKcmyk(24.2%, 74.7%, 0%, 28.6%)
CIE-LABlab(39.13, 59.27, -54.22)
CIE-LCHlch(39.13, 80.33, 317.55°)
OKLaboklab(50.17% 0.1385 -0.1534)
OKLCHoklch(50.17% 0.207 312.1)
XYZxyz(19.9002, 10.7352, 45.2707)
Luminance0.1074 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EB6 #5AB62E
analogous
#462EB6 #8A2EB6 #B62E9E
triadic
#8A2EB6 #B68A2E #2EB68A
tetradic
#8A2EB6 #B6462E #5AB62E #2E9EB6
square
#8A2EB6 #B6462E #5AB62E #2E9EB6
split-complementary
#8A2EB6 #9EB62E #2EB646
monochromatic
#401554 #652285 #8A2EB6 #A84FD2 #C080DF

Accessibility & contrast

On white

6.67
#8A2EB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.15
#8A2EB6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EB6
6.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EB6#FFFFFF#000000##FFFFFF
##8A2EB61.006.673.156.67
#FFFFFF6.671.0021.001.00
#0000003.1521.001.0021.00
##FFFFFF6.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BA
Deuteranopia (green-blind)
#1A5EB3
Tritanopia (blue-blind)
#854D70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2eb6;
/* rgb */ color: rgb(138, 46, 182);
/* oklch */ color: oklch(50.2% 0.207 312.1);
Tailwind
colors: {
  custom: {
    50: '#b170cd',
    500: '#8a2eb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a2eb6;
$custom-light: #b170cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2eb6",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 182
  },
  "hsl": {
    "h": 280.588,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50173,
    "c": 0.20665,
    "h": 312.1
  },
  "luminance": 0.10735
}

Semantic roles & 50–950 ramp

primary
#8A2EB6
secondary
#92C878
accent
#E34578
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2EB6

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

Preview Lab → · Contrast checker → · Palette generator →

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