#8A1E9B#8A1E9B

#8A1E9B is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.9% C 0.199 H 321.7°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#8A1E9B
RGBrgb(138, 30, 155)
HSLhsl(292, 68%, 36%)
HSVhsv(292, 81%, 61%)
CMYKcmyk(11%, 80.6%, 0%, 39.2%)
CIE-LABlab(35.40, 59.40, -44.07)
CIE-LCHlch(35.40, 73.96, 323.43°)
OKLaboklab(46.95% 0.1562 -0.1235)
OKLCHoklch(46.95% 0.199 321.7)
XYZxyz(16.8613, 8.6993, 31.7950)
Luminance0.0870 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1E9B #2F9B1E
analogous
#4C1E9B #8A1E9B #9B1E6E
triadic
#8A1E9B #9B8A1E #1E9B8A
tetradic
#8A1E9B #9B4C1E #2F9B1E #1E6E9B
square
#8A1E9B #9B4C1E #2F9B1E #1E6E9B
split-complementary
#8A1E9B #6E9B1E #1E9B4C
monochromatic
#2F0A34 #5C1468 #8A1E9B #B828CE #CC55DE

Accessibility & contrast

On white

7.67
#8A1E9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A1E9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1E9B
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1E9B#FFFFFF#000000##FFFFFF
##8A1E9B1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9E
Deuteranopia (green-blind)
#305798
Tritanopia (blue-blind)
#8B395D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a1e9b;
/* rgb */ color: rgb(138, 30, 155);
/* oklch */ color: oklch(46.9% 0.199 321.7);
Tailwind
colors: {
  custom: {
    50: '#b068b9',
    500: '#8a1e9b',
    950: '#000000',
  },
}
SCSS
$custom: #8a1e9b;
$custom-light: #b068b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1e9b",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 155
  },
  "hsl": {
    "h": 291.84,
    "s": 67.568,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46948,
    "c": 0.19913,
    "h": 321.7
  },
  "luminance": 0.08698
}

Semantic roles & 50–950 ramp

primary
#8A1E9B
secondary
#62C253
accent
#EA3D55
background
#FBF6FB
surface
#F6EBF6
border
#D0C6D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A1E9B

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

Preview Lab → · Contrast checker → · Palette generator →

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