#8A1E9D#8A1E9D

#8A1E9D is a mid, highly saturated purple. Relative luminance 0.088; OKLCH L 47.1% C 0.201 H 321.0°. Best body text is #FFFFFF at 7.63:1 contrast (WCAG AA passes).

Color values

HEX#8A1E9D
RGBrgb(138, 30, 157)
HSLhsl(291, 68%, 37%)
HSVhsv(291, 81%, 62%)
CMYKcmyk(12.1%, 80.9%, 0%, 38.4%)
CIE-LABlab(35.53, 59.76, -45.07)
CIE-LCHlch(35.53, 74.85, 322.98°)
OKLaboklab(47.09% 0.156 -0.1264)
OKLCHoklch(47.09% 0.201 321)
XYZxyz(17.0306, 8.7671, 32.6869)
Luminance0.0877 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E9D #319D1E
analogous
#4B1E9D #8A1E9D #9D1E71
triadic
#8A1E9D #9D8A1E #1E9D8A
tetradic
#8A1E9D #9D4B1E #319D1E #1E719D
square
#8A1E9D #9D4B1E #319D1E #1E719D
split-complementary
#8A1E9D #719D1E #1E9D4B
monochromatic
#300A36 #5D146A #8A1E9D #B728D0 #CA57DF

Accessibility & contrast

On white

7.63
#8A1E9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A1E9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E9D
7.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E9D#FFFFFF#000000##FFFFFF
##8A1E9D1.007.632.757.63
#FFFFFF7.631.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#2E579A
Tritanopia (blue-blind)
#8B3A5E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a1e9d;
/* rgb */ color: rgb(138, 30, 157);
/* oklch */ color: oklch(47.1% 0.201 321.0);
Tailwind
colors: {
  custom: {
    50: '#b068bb',
    500: '#8a1e9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e9d;
$custom-light: #b068bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e9d",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 157
  },
  "hsl": {
    "h": 291.024,
    "s": 67.914,
    "l": 36.667
  },
  "oklch": {
    "l": 0.47085,
    "c": 0.20075,
    "h": 321
  },
  "luminance": 0.08766
}

Semantic roles & 50–950 ramp

primary
#8A1E9D
secondary
#65C254
accent
#EB3D57
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110712
muted
#807A81

Preview Lab

Preview with #8A1E9D

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

Preview Lab → · Contrast checker → · Palette generator →

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