#8A1CB3#8A1CB3

#8A1CB3 is a mid, highly saturated purple. Relative luminance 0.095; OKLCH L 48.5% C 0.221 H 314.0°. Best body text is #FFFFFF at 7.25:1 contrast (WCAG AA passes).

Color values

HEX#8A1CB3
RGBrgb(138, 28, 179)
HSLhsl(284, 73%, 41%)
HSVhsv(284, 84%, 70%)
CMYKcmyk(22.9%, 84.4%, 0%, 29.8%)
CIE-LABlab(36.91, 64.46, -56.04)
CIE-LCHlch(36.91, 85.41, 319.00°)
OKLaboklab(48.54% 0.1533 -0.1586)
OKLCHoklch(48.54% 0.221 314)
XYZxyz(19.0318, 9.4891, 43.4681)
Luminance0.0949 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1CB3 #45B31C
analogous
#3F1CB3 #8A1CB3 #B31C90
triadic
#8A1CB3 #B38A1C #1CB38A
tetradic
#8A1CB3 #B33F1C #45B31C #1C90B3
square
#8A1CB3 #B33F1C #45B31C #1C90B3
split-complementary
#8A1CB3 #90B31C #1CB33F
monochromatic
#380B49 #61147E #8A1CB3 #AE2EDE #C363E7

Accessibility & contrast

On white

7.25
#8A1CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#8A1CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1CB3
7.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1CB3#FFFFFF#000000##FFFFFF
##8A1CB31.007.252.907.25
#FFFFFF7.251.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0259B0
Tritanopia (blue-blind)
#86446B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a1cb3;
/* rgb */ color: rgb(138, 28, 179);
/* oklch */ color: oklch(48.5% 0.221 314.0);
Tailwind
colors: {
  custom: {
    50: '#b169cb',
    500: '#8a1cb3',
    950: '#000000',
  },
}
SCSS
$custom: #8a1cb3;
$custom-light: #b169cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1cb3",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 283.709,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.48544,
    "c": 0.22056,
    "h": 314
  },
  "luminance": 0.09488
}

Semantic roles & 50–950 ramp

primary
#8A1CB3
secondary
#7DCB5F
accent
#F0386A
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A1CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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