#8A1D8B#8A1D8B

#8A1D8B is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.8% C 0.187 H 327.7°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#8A1D8B
RGBrgb(138, 29, 139)
HSLhsl(299, 65%, 33%)
HSVhsv(299, 79%, 55%)
CMYKcmyk(0.7%, 79.1%, 0%, 45.5%)
CIE-LABlab(34.29, 56.89, -36.05)
CIE-LCHlch(34.29, 67.35, 327.64°)
OKLaboklab(45.84% 0.1583 -0.1)
OKLCHoklch(45.84% 0.187 327.7)
XYZxyz(15.5806, 8.1472, 25.1730)
Luminance0.0815 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1D8B #1E8B1D
analogous
#531D8B #8A1D8B #8B1D55
triadic
#8A1D8B #8B8A1D #1D8B8A
tetradic
#8A1D8B #8B531D #1E8B1D #1D558B
square
#8A1D8B #8B531D #1E8B1D #1D558B
split-complementary
#8A1D8B #558B1D #1D8B53
monochromatic
#250826 #581258 #8A1D8B #BC28BE #D849D9

Accessibility & contrast

On white

7.99
#8A1D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A1D8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1D8B
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1D8B#FFFFFF#000000##FFFFFF
##8A1D8B1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#3C5588
Tritanopia (blue-blind)
#8E3054
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a1d8b;
/* rgb */ color: rgb(138, 29, 139);
/* oklch */ color: oklch(45.8% 0.187 327.7);
Tailwind
colors: {
  custom: {
    50: '#b067ad',
    500: '#8a1d8b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1d8b;
$custom-light: #b067ad;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1d8b",
  "rgb": {
    "r": 138,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 299.455,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.45837,
    "c": 0.18726,
    "h": 327.7
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#8A1D8B
secondary
#4ABB49
accent
#E83F41
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A1D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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