#8A2B8D#8A2B8D

#8A2B8D is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.173 H 326.6°. Best body text is #FFFFFF at 7.47:1 contrast (WCAG AA passes).

Color values

HEX#8A2B8D
RGBrgb(138, 43, 141)
HSLhsl(298, 53%, 36%)
HSVhsv(298, 70%, 55%)
CMYKcmyk(2.1%, 69.5%, 0%, 44.7%)
CIE-LABlab(36.09, 52.42, -34.41)
CIE-LCHlch(36.09, 62.71, 326.72°)
OKLaboklab(47.17% 0.1448 -0.0954)
OKLCHoklch(47.17% 0.173 326.6)
XYZxyz(16.1525, 9.0552, 26.0912)
Luminance0.0905 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2B8D #2E8D2B
analogous
#592B8D #8A2B8D #8D2B5F
triadic
#8A2B8D #8D8A2B #2B8D8A
tetradic
#8A2B8D #8D592B #2E8D2B #2B5F8D
square
#8A2B8D #8D592B #2E8D2B #2B5F8D
split-complementary
#8A2B8D #5F8D2B #2B8D59
monochromatic
#2E0E2F #5C1D5E #8A2B8D #B839BC #CC63CF

Accessibility & contrast

On white

7.47
#8A2B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8A2B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2B8D
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2B8D#FFFFFF#000000##FFFFFF
##8A2B8D1.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194D90
Deuteranopia (green-blind)
#41598A
Tritanopia (blue-blind)
#8E3A59
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2b8d;
/* rgb */ color: rgb(138, 43, 141);
/* oklch */ color: oklch(47.2% 0.173 326.6);
Tailwind
colors: {
  custom: {
    50: '#af6daf',
    500: '#8a2b8d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2b8d;
$custom-light: #af6daf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2b8d",
  "rgb": {
    "r": 138,
    "g": 43,
    "b": 141
  },
  "hsl": {
    "h": 298.163,
    "s": 53.261,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47165,
    "c": 0.17337,
    "h": 326.6
  },
  "luminance": 0.09054
}

Semantic roles & 50–950 ramp

primary
#8A2B8D
secondary
#61B65E
accent
#DD4B50
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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