#8A2CB7#8A2CB7

#8A2CB7 is a mid, highly saturated purple. Relative luminance 0.106; OKLCH L 50.1% C 0.210 H 311.9°. Best body text is #FFFFFF at 6.72:1 contrast (WCAG AA passes).

Color values

HEX#8A2CB7
RGBrgb(138, 44, 183)
HSLhsl(281, 61%, 45%)
HSVhsv(281, 76%, 72%)
CMYKcmyk(24.6%, 76%, 0%, 28.2%)
CIE-LABlab(38.94, 60.23, -55.12)
CIE-LCHlch(38.94, 81.64, 317.53°)
OKLaboklab(50.06% 0.1402 -0.156)
OKLCHoklch(50.06% 0.21 311.9)
XYZxyz(19.9276, 10.6241, 45.7915)
Luminance0.1062 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CB7 #59B72C
analogous
#452CB7 #8A2CB7 #B72C9E
triadic
#8A2CB7 #B78A2C #2CB78A
tetradic
#8A2CB7 #B7452C #59B72C #2C9EB7
square
#8A2CB7 #B7452C #59B72C #2C9EB7
split-complementary
#8A2CB7 #9EB72C #2CB745
monochromatic
#401454 #652086 #8A2CB7 #A84CD4 #C07EE0

Accessibility & contrast

On white

6.72
#8A2CB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.12
#8A2CB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2CB7
6.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2CB7#FFFFFF#000000##FFFFFF
##8A2CB71.006.723.126.72
#FFFFFF6.721.0021.001.00
#0000003.1221.001.0021.00
##FFFFFF6.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057BB
Deuteranopia (green-blind)
#145DB4
Tritanopia (blue-blind)
#844D70
Achromatopsia (no color)
#5C5C5C

Design tokens & code

CSS
--color: #8a2cb7;
/* rgb */ color: rgb(138, 44, 183);
/* oklch */ color: oklch(50.1% 0.210 311.9);
Tailwind
colors: {
  custom: {
    50: '#b16fcd',
    500: '#8a2cb7',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cb7;
$custom-light: #b16fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cb7",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 183
  },
  "hsl": {
    "h": 280.576,
    "s": 61.233,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50061,
    "c": 0.20972,
    "h": 311.9
  },
  "luminance": 0.10624
}

Semantic roles & 50–950 ramp

primary
#8A2CB7
secondary
#91C876
accent
#E44378
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110814
muted
#807B82

Preview Lab

Preview with #8A2CB7

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

Preview Lab → · Contrast checker → · Palette generator →

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