#8A2BB5#8A2BB5

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

Color values

HEX#8A2BB5
RGBrgb(138, 43, 181)
HSLhsl(281, 62%, 44%)
HSVhsv(281, 76%, 71%)
CMYKcmyk(23.8%, 76.2%, 0%, 29%)
CIE-LABlab(38.67, 60.18, -54.38)
CIE-LCHlch(38.67, 81.11, 317.90°)
OKLaboklab(49.82% 0.1414 -0.1538)
OKLCHoklch(49.82% 0.209 312.6)
XYZxyz(19.6841, 10.4678, 44.6907)
Luminance0.1047 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BB5 #56B52B
analogous
#452BB5 #8A2BB5 #B52B9B
triadic
#8A2BB5 #B58A2B #2BB58A
tetradic
#8A2BB5 #B5452B #56B52B #2B9BB5
square
#8A2BB5 #B5452B #56B52B #2B9BB5
split-complementary
#8A2BB5 #9BB52B #2BB545
monochromatic
#3F1452 #641F84 #8A2BB5 #A949D4 #C07BE0

Accessibility & contrast

On white

6.79
#8A2BB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A2BB5
6.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BB5#FFFFFF#000000##FFFFFF
##8A2BB51.006.793.096.79
#FFFFFF6.791.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B9
Deuteranopia (green-blind)
#175DB2
Tritanopia (blue-blind)
#854B6F
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2bb5;
/* rgb */ color: rgb(138, 43, 181);
/* oklch */ color: oklch(49.8% 0.209 312.6);
Tailwind
colors: {
  custom: {
    50: '#b16fcc',
    500: '#8a2bb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bb5;
$custom-light: #b16fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bb5",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 181
  },
  "hsl": {
    "h": 281.304,
    "s": 61.607,
    "l": 43.922
  },
  "oklch": {
    "l": 0.49824,
    "c": 0.20893,
    "h": 312.6
  },
  "luminance": 0.10467
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A2BB5

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

Preview Lab → · Contrast checker → · Palette generator →

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