#8A2BA2#8A2BA2

#8A2BA2 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.5% C 0.192 H 318.6°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#8A2BA2
RGBrgb(138, 43, 162)
HSLhsl(288, 58%, 40%)
HSVhsv(288, 73%, 64%)
CMYKcmyk(14.8%, 73.5%, 0%, 36.5%)
CIE-LABlab(37.37, 56.36, -45.13)
CIE-LCHlch(37.37, 72.20, 321.31°)
OKLaboklab(48.49% 0.1439 -0.1267)
OKLCHoklch(48.49% 0.192 318.6)
XYZxyz(17.8658, 9.7405, 35.1144)
Luminance0.0974 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2BA2 #43A22B
analogous
#4E2BA2 #8A2BA2 #A22B7F
triadic
#8A2BA2 #A28A2B #2BA28A
tetradic
#8A2BA2 #A24E2B #43A22B #2B7FA2
square
#8A2BA2 #A24E2B #43A22B #2B7FA2
split-complementary
#8A2BA2 #7FA22B #2BA24E
monochromatic
#381141 #611E72 #8A2BA2 #AF3ECC #C36FD9

Accessibility & contrast

On white

7.12
#8A2BA2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A2BA2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2BA2
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2BA2#FFFFFF#000000##FFFFFF
##8A2BA21.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A5
Deuteranopia (green-blind)
#325B9F
Tritanopia (blue-blind)
#8A4364
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2ba2;
/* rgb */ color: rgb(138, 43, 162);
/* oklch */ color: oklch(48.5% 0.192 318.6);
Tailwind
colors: {
  custom: {
    50: '#b06ebe',
    500: '#8a2ba2',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ba2;
$custom-light: #b06ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ba2",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 162
  },
  "hsl": {
    "h": 287.899,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.48494,
    "c": 0.19175,
    "h": 318.6
  },
  "luminance": 0.0974
}

Semantic roles & 50–950 ramp

primary
#8A2BA2
secondary
#7BC069
accent
#E14766
background
#FBF6FB
surface
#F6ECF7
border
#D0C7D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2BA2

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

Preview Lab → · Contrast checker → · Palette generator →

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