#8A1E7B#8A1E7B

#8A1E7B is a dark, vivid purple. Relative luminance 0.078; OKLCH L 45.0% C 0.174 H 334.5°. Best body text is #FFFFFF at 8.23:1 contrast (WCAG AA passes).

Color values

HEX#8A1E7B
RGBrgb(138, 30, 123)
HSLhsl(308, 64%, 33%)
HSVhsv(308, 78%, 54%)
CMYKcmyk(0%, 78.3%, 10.9%, 45.9%)
CIE-LABlab(33.48, 54.00, -27.36)
CIE-LCHlch(33.48, 60.53, 333.13°)
OKLaboklab(44.97% 0.1572 -0.0749)
OKLCHoklch(44.97% 0.174 334.5)
XYZxyz(14.5208, 7.7632, 19.4687)
Luminance0.0776 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E7B #1E8A2D
analogous
#631E8A #8A1E7B #8A1E45
triadic
#8A1E7B #7B8A1E #1E7B8A
tetradic
#8A1E7B #8A631E #1E8A2D #1E458A
square
#8A1E7B #8A631E #1E8A2D #1E458A
split-complementary
#8A1E7B #458A1E #1E8A63
monochromatic
#250821 #58134E #8A1E7B #BC29A8 #D84BC4

Accessibility & contrast

On white

8.23
#8A1E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.55
#8A1E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E7B
8.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E7B#FFFFFF#000000##FFFFFF
##8A1E7B1.008.232.558.23
#FFFFFF8.231.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C457D
Deuteranopia (green-blind)
#455478
Tritanopia (blue-blind)
#91284B
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1e7b;
/* rgb */ color: rgb(138, 30, 123);
/* oklch */ color: oklch(45.0% 0.174 334.5);
Tailwind
colors: {
  custom: {
    50: '#b067a1',
    500: '#8a1e7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e7b;
$custom-light: #b067a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e7b",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 308.333,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44971,
    "c": 0.17416,
    "h": 334.5
  },
  "luminance": 0.07762
}

Semantic roles & 50–950 ramp

primary
#8A1E7B
secondary
#4ABA59
accent
#E75841
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A1E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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