#8A2D8E#8A2D8E

#8A2D8E is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.4% C 0.172 H 326.1°. Best body text is #FFFFFF at 7.38:1 contrast (WCAG AA passes).

Color values

HEX#8A2D8E
RGBrgb(138, 45, 142)
HSLhsl(298, 52%, 37%)
HSVhsv(298, 68%, 56%)
CMYKcmyk(2.8%, 68.3%, 0%, 44.3%)
CIE-LABlab(36.43, 51.81, -34.49)
CIE-LCHlch(36.43, 62.23, 326.35°)
OKLaboklab(47.43% 0.1425 -0.0956)
OKLCHoklch(47.43% 0.172 326.1)
XYZxyz(16.3018, 9.2341, 26.5097)
Luminance0.0923 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D8E #318E2D
analogous
#5A2D8E #8A2D8E #8E2D62
triadic
#8A2D8E #8E8A2D #2D8E8A
tetradic
#8A2D8E #8E5A2D #318E2D #2D628E
square
#8A2D8E #8E5A2D #318E2D #2D628E
split-complementary
#8A2D8E #628E2D #2D8E5A
monochromatic
#301031 #5D1E60 #8A2D8E #B73CBC #CA67CF

Accessibility & contrast

On white

7.38
#8A2D8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.85
#8A2D8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D8E
7.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D8E#FFFFFF#000000##FFFFFF
##8A2D8E1.007.382.857.38
#FFFFFF7.381.0021.001.00
#0000002.8521.001.0021.00
##FFFFFF7.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4E91
Deuteranopia (green-blind)
#425A8B
Tritanopia (blue-blind)
#8E3B5A
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a2d8e;
/* rgb */ color: rgb(138, 45, 142);
/* oklch */ color: oklch(47.4% 0.172 326.1);
Tailwind
colors: {
  custom: {
    50: '#af6eaf',
    500: '#8a2d8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d8e;
$custom-light: #af6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d8e",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 142
  },
  "hsl": {
    "h": 297.526,
    "s": 51.872,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47428,
    "c": 0.17164,
    "h": 326.1
  },
  "luminance": 0.09233
}

Semantic roles & 50–950 ramp

primary
#8A2D8E
secondary
#65B561
accent
#DB4C52
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2D8E

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

Preview Lab → · Contrast checker → · Palette generator →

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