#8A2D95#8A2D95

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

Color values

HEX#8A2D95
RGBrgb(138, 45, 149)
HSLhsl(294, 54%, 38%)
HSVhsv(294, 70%, 58%)
CMYKcmyk(7.4%, 69.8%, 0%, 41.6%)
CIE-LABlab(36.84, 53.10, -38.12)
CIE-LCHlch(36.84, 65.36, 324.33°)
OKLaboklab(47.85% 0.1426 -0.1062)
OKLCHoklch(47.85% 0.178 323.3)
XYZxyz(16.8439, 9.4509, 29.3649)
Luminance0.0945 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D95 #38952D
analogous
#562D95 #8A2D95 #952D6C
triadic
#8A2D95 #958A2D #2D958A
tetradic
#8A2D95 #95562D #38952D #2D6C95
square
#8A2D95 #95562D #38952D #2D6C95
split-complementary
#8A2D95 #6C952D #2D9556
monochromatic
#331137 #5E1F66 #8A2D95 #B53BC4 #C76AD2

Accessibility & contrast

On white

7.27
#8A2D95 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8A2D95 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D95
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D95#FFFFFF#000000##FFFFFF
##8A2D951.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F5098
Deuteranopia (green-blind)
#3E5A92
Tritanopia (blue-blind)
#8C3E5D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2d95;
/* rgb */ color: rgb(138, 45, 149);
/* oklch */ color: oklch(47.9% 0.178 323.3);
Tailwind
colors: {
  custom: {
    50: '#af6eb5',
    500: '#8a2d95',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d95;
$custom-light: #af6eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d95",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 149
  },
  "hsl": {
    "h": 293.654,
    "s": 53.608,
    "l": 38.039
  },
  "oklch": {
    "l": 0.47853,
    "c": 0.17776,
    "h": 323.3
  },
  "luminance": 0.0945
}

Semantic roles & 50–950 ramp

primary
#8A2D95
secondary
#6EB965
accent
#DD4B5A
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2D95

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

Preview Lab → · Contrast checker → · Palette generator →

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