#8A2BB4#8A2BB4

#8A2BB4 is a mid, highly saturated purple. Relative luminance 0.104; OKLCH L 49.8% C 0.208 H 312.9°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#8A2BB4
RGBrgb(138, 43, 180)
HSLhsl(282, 61%, 44%)
HSVhsv(282, 76%, 71%)
CMYKcmyk(23.3%, 76.1%, 0%, 29.4%)
CIE-LABlab(38.60, 59.97, -53.90)
CIE-LCHlch(38.60, 80.63, 318.05°)
OKLaboklab(49.75% 0.1416 -0.1524)
OKLCHoklch(49.75% 0.208 312.9)
XYZxyz(19.5819, 10.4269, 44.1522)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BB4 #55B42B
analogous
#452BB4 #8A2BB4 #B42B99
triadic
#8A2BB4 #B48A2B #2BB48A
tetradic
#8A2BB4 #B4452B #55B42B #2B99B4
square
#8A2BB4 #B4452B #55B42B #2B99B4
split-complementary
#8A2BB4 #99B42B #2BB445
monochromatic
#3E1351 #641F83 #8A2BB4 #A949D3 #C07ADF

Accessibility & contrast

On white

6.81
#8A2BB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#8A2BB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BB4
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BB4#FFFFFF#000000##FFFFFF
##8A2BB41.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B8
Deuteranopia (green-blind)
#1A5DB1
Tritanopia (blue-blind)
#854B6E
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2bb4;
/* rgb */ color: rgb(138, 43, 180);
/* oklch */ color: oklch(49.8% 0.208 312.9);
Tailwind
colors: {
  custom: {
    50: '#b16fcb',
    500: '#8a2bb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bb4;
$custom-light: #b16fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bb4",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 180
  },
  "hsl": {
    "h": 281.606,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.49752,
    "c": 0.20802,
    "h": 312.9
  },
  "luminance": 0.10426
}

Semantic roles & 50–950 ramp

primary
#8A2BB4
secondary
#8DC773
accent
#E54375
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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