#8A2BB7#8A2BB7

#8A2BB7 is a mid, highly saturated purple. Relative luminance 0.105; OKLCH L 50.0% C 0.211 H 312.0°. Best body text is #FFFFFF at 6.75:1 contrast (WCAG AA passes).

Color values

HEX#8A2BB7
RGBrgb(138, 43, 183)
HSLhsl(281, 62%, 44%)
HSVhsv(281, 77%, 72%)
CMYKcmyk(24.6%, 76.5%, 0%, 28.2%)
CIE-LABlab(38.81, 60.59, -55.33)
CIE-LCHlch(38.81, 82.05, 317.60°)
OKLaboklab(49.97% 0.141 -0.1566)
OKLCHoklch(49.97% 0.211 312)
XYZxyz(19.8908, 10.5505, 45.7792)
Luminance0.1055 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BB7 #58B72B
analogous
#442BB7 #8A2BB7 #B72B9E
triadic
#8A2BB7 #B78A2B #2BB78A
tetradic
#8A2BB7 #B7442B #58B72B #2B9EB7
square
#8A2BB7 #B7442B #58B72B #2B9EB7
split-complementary
#8A2BB7 #9EB72B #2BB744
monochromatic
#3F1454 #651F85 #8A2BB7 #A84BD5 #C07CE0

Accessibility & contrast

On white

6.75
#8A2BB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8A2BB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2BB7
6.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BB7#FFFFFF#000000##FFFFFF
##8A2BB71.006.753.116.75
#FFFFFF6.751.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#125DB4
Tritanopia (blue-blind)
#844C70
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2bb7;
/* rgb */ color: rgb(138, 43, 183);
/* oklch */ color: oklch(50.0% 0.211 312.0);
Tailwind
colors: {
  custom: {
    50: '#b16fcd',
    500: '#8a2bb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2bb7;
$custom-light: #b16fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2bb7",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 183
  },
  "hsl": {
    "h": 280.714,
    "s": 61.947,
    "l": 44.314
  },
  "oklch": {
    "l": 0.49971,
    "c": 0.21075,
    "h": 312
  },
  "luminance": 0.1055
}

Semantic roles & 50–950 ramp

primary
#8A2BB7
secondary
#90C975
accent
#E54377
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2BB7

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

Preview Lab → · Contrast checker → · Palette generator →

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