#8A2D96#8A2D96

#8A2D96 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 47.9% C 0.179 H 322.9°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#8A2D96
RGBrgb(138, 45, 150)
HSLhsl(293, 54%, 38%)
HSVhsv(293, 70%, 59%)
CMYKcmyk(8%, 70%, 0%, 41.2%)
CIE-LABlab(36.90, 53.28, -38.63)
CIE-LCHlch(36.90, 65.81, 324.06°)
OKLaboklab(47.92% 0.1425 -0.1077)
OKLCHoklch(47.92% 0.179 322.9)
XYZxyz(16.9241, 9.4830, 29.7872)
Luminance0.0948 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D96 #39962D
analogous
#552D96 #8A2D96 #962D6D
triadic
#8A2D96 #968A2D #2D968A
tetradic
#8A2D96 #96552D #39962D #2D6D96
square
#8A2D96 #96552D #39962D #2D6D96
split-complementary
#8A2D96 #6D962D #2D9655
monochromatic
#331138 #5F1F67 #8A2D96 #B53CC4 #C76BD3

Accessibility & contrast

On white

7.25
#8A2D96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8A2D96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D96
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D96#FFFFFF#000000##FFFFFF
##8A2D961.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C5099
Deuteranopia (green-blind)
#3D5A93
Tritanopia (blue-blind)
#8C3F5E
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2d96;
/* rgb */ color: rgb(138, 45, 150);
/* oklch */ color: oklch(47.9% 0.179 322.9);
Tailwind
colors: {
  custom: {
    50: '#af6eb5',
    500: '#8a2d96',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d96;
$custom-light: #af6eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d96",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 150
  },
  "hsl": {
    "h": 293.143,
    "s": 53.846,
    "l": 38.235
  },
  "oklch": {
    "l": 0.47915,
    "c": 0.17864,
    "h": 322.9
  },
  "luminance": 0.09482
}

Semantic roles & 50–950 ramp

primary
#8A2D96
secondary
#6FB965
accent
#DD4B5B
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2D96

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

Preview Lab → · Contrast checker → · Palette generator →

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