#8A2CB2#8A2CB2

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

Color values

HEX#8A2CB2
RGBrgb(138, 44, 178)
HSLhsl(282, 60%, 44%)
HSVhsv(282, 75%, 70%)
CMYKcmyk(22.5%, 75.3%, 0%, 30.2%)
CIE-LABlab(38.59, 59.19, -52.73)
CIE-LCHlch(38.59, 79.28, 318.30°)
OKLaboklab(49.7% 0.141 -0.149)
OKLCHoklch(49.7% 0.205 313.4)
XYZxyz(19.4164, 10.4196, 43.0992)
Luminance0.1042 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2CB2 #54B22C
analogous
#472CB2 #8A2CB2 #B22C97
triadic
#8A2CB2 #B28A2C #2CB28A
tetradic
#8A2CB2 #B2472C #54B22C #2C97B2
square
#8A2CB2 #B2472C #54B22C #2C97B2
split-complementary
#8A2CB2 #97B22C #2CB247
monochromatic
#3E1450 #642081 #8A2CB2 #A949D2 #C07ADE

Accessibility & contrast

On white

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

On black

3.08
#8A2CB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##8A2CB2#FFFFFF#000000##FFFFFF
##8A2CB21.006.813.086.81
#FFFFFF6.811.0021.001.00
#0000003.0821.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056B6
Deuteranopia (green-blind)
#1F5DAF
Tritanopia (blue-blind)
#864A6D
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a2cb2;
/* rgb */ color: rgb(138, 44, 178);
/* oklch */ color: oklch(49.7% 0.205 313.4);
Tailwind
colors: {
  custom: {
    50: '#b16fca',
    500: '#8a2cb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2cb2;
$custom-light: #b16fca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2cb2",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 178
  },
  "hsl": {
    "h": 282.09,
    "s": 60.36,
    "l": 43.529
  },
  "oklch": {
    "l": 0.49698,
    "c": 0.20513,
    "h": 313.4
  },
  "luminance": 0.10419
}

Semantic roles & 50–950 ramp

primary
#8A2CB2
secondary
#8CC673
accent
#E44474
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2CB2

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

Preview Lab → · Contrast checker → · Palette generator →

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