#8A1E7A#8A1E7A

#8A1E7A is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.173 H 335.0°. Best body text is #FFFFFF at 8.24:1 contrast (WCAG AA passes).

Color values

HEX#8A1E7A
RGBrgb(138, 30, 122)
HSLhsl(309, 64%, 33%)
HSVhsv(309, 78%, 54%)
CMYKcmyk(0%, 78.3%, 11.6%, 45.9%)
CIE-LABlab(33.43, 53.84, -26.81)
CIE-LCHlch(33.43, 60.15, 333.53°)
OKLaboklab(44.92% 0.1572 -0.0733)
OKLCHoklch(44.92% 0.173 335)
XYZxyz(14.4585, 7.7383, 19.1407)
Luminance0.0774 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E7A #1E8A2E
analogous
#641E8A #8A1E7A #8A1E44
triadic
#8A1E7A #7A8A1E #1E7A8A
tetradic
#8A1E7A #8A641E #1E8A2E #1E448A
square
#8A1E7A #8A641E #1E8A2E #1E448A
split-complementary
#8A1E7A #448A1E #1E8A64
monochromatic
#250821 #58134E #8A1E7A #BC29A6 #D84BC3

Accessibility & contrast

On white

8.24
#8A1E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A1E7A
8.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E7A#FFFFFF#000000##FFFFFF
##8A1E7A1.008.242.558.24
#FFFFFF8.241.0021.001.00
#0000002.5521.001.0021.00
##FFFFFF8.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D447C
Deuteranopia (green-blind)
#455477
Tritanopia (blue-blind)
#91284A
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #8a1e7a;
/* rgb */ color: rgb(138, 30, 122);
/* oklch */ color: oklch(44.9% 0.173 335.0);
Tailwind
colors: {
  custom: {
    50: '#b067a1',
    500: '#8a1e7a',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e7a;
$custom-light: #b067a1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e7a",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 308.889,
    "s": 64.286,
    "l": 32.941
  },
  "oklch": {
    "l": 0.44915,
    "c": 0.17343,
    "h": 335
  },
  "luminance": 0.07737
}

Semantic roles & 50–950 ramp

primary
#8A1E7A
secondary
#4ABA5A
accent
#E75941
background
#FBF6F9
surface
#F6EBF2
border
#D0C6CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A1E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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