#8A2CB8#8A2CB8

#8A2CB8 is a mid, highly saturated purple. Relative luminance 0.107; OKLCH L 50.1% C 0.211 H 311.6°. Best body text is #FFFFFF at 6.70:1 contrast (WCAG AA passes).

Color values

HEX#8A2CB8
RGBrgb(138, 44, 184)
HSLhsl(280, 61%, 45%)
HSVhsv(280, 76%, 72%)
CMYKcmyk(25%, 76.1%, 0%, 27.8%)
CIE-LABlab(39.01, 60.43, -55.59)
CIE-LCHlch(39.01, 82.11, 317.39°)
OKLaboklab(50.13% 0.14 -0.1574)
OKLCHoklch(50.13% 0.211 311.6)
XYZxyz(20.0320, 10.6659, 46.3416)
Luminance0.1066 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CB8 #5AB82C
analogous
#442CB8 #8A2CB8 #B82CA0
triadic
#8A2CB8 #B88A2C #2CB88A
tetradic
#8A2CB8 #B8442C #5AB82C #2CA0B8
square
#8A2CB8 #B8442C #5AB82C #2CA0B8
split-complementary
#8A2CB8 #A0B82C #2CB844
monochromatic
#401455 #652087 #8A2CB8 #A84DD4 #C07EE0

Accessibility & contrast

On white

6.70
#8A2CB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.13
#8A2CB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CB8
6.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CB8#FFFFFF#000000##FFFFFF
##8A2CB81.006.703.136.70
#FFFFFF6.701.0021.001.00
#0000003.1321.001.0021.00
##FFFFFF6.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058BC
Deuteranopia (green-blind)
#115EB5
Tritanopia (blue-blind)
#844D71
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2cb8;
/* rgb */ color: rgb(138, 44, 184);
/* oklch */ color: oklch(50.1% 0.211 311.6);
Tailwind
colors: {
  custom: {
    50: '#b16fce',
    500: '#8a2cb8',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cb8;
$custom-light: #b16fce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cb8",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 184
  },
  "hsl": {
    "h": 280.286,
    "s": 61.404,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50134,
    "c": 0.21063,
    "h": 311.6
  },
  "luminance": 0.10665
}

Semantic roles & 50–950 ramp

primary
#8A2CB8
secondary
#92C977
accent
#E54378
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2CB8

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

Preview Lab → · Contrast checker → · Palette generator →

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