#8A1CB4#8A1CB4

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

Color values

HEX#8A1CB4
RGBrgb(138, 28, 180)
HSLhsl(283, 73%, 41%)
HSVhsv(283, 84%, 71%)
CMYKcmyk(23.3%, 84.4%, 0%, 29.4%)
CIE-LABlab(36.98, 64.65, -56.51)
CIE-LCHlch(36.98, 85.87, 318.84°)
OKLaboklab(48.62% 0.153 -0.16)
OKLCHoklch(48.62% 0.221 313.7)
XYZxyz(19.1333, 9.5297, 44.0027)
Luminance0.0953 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1CB4 #46B41C
analogous
#3E1CB4 #8A1CB4 #B41C92
triadic
#8A1CB4 #B48A1C #1CB48A
tetradic
#8A1CB4 #B43E1C #46B41C #1C92B4
square
#8A1CB4 #B43E1C #46B41C #1C92B4
split-complementary
#8A1CB4 #92B41C #1CB43E
monochromatic
#390C4A #61147F #8A1CB4 #AE2FDF #C364E7

Accessibility & contrast

On white

7.23
#8A1CB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A1CB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1CB4
7.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1CB4#FFFFFF#000000##FFFFFF
##8A1CB41.007.232.917.23
#FFFFFF7.231.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#86446B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a1cb4;
/* rgb */ color: rgb(138, 28, 180);
/* oklch */ color: oklch(48.6% 0.221 313.7);
Tailwind
colors: {
  custom: {
    50: '#b169cb',
    500: '#8a1cb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a1cb4;
$custom-light: #b169cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1cb4",
  "rgb": {
    "r": 138,
    "g": 28,
    "b": 180
  },
  "hsl": {
    "h": 283.421,
    "s": 73.077,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48621,
    "c": 0.22139,
    "h": 313.7
  },
  "luminance": 0.09529
}

Semantic roles & 50–950 ramp

primary
#8A1CB4
secondary
#7ECC60
accent
#F0386B
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A1CB4

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

Preview Lab → · Contrast checker → · Palette generator →

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