#8A1BB4#8A1BB4

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

Color values

HEX#8A1BB4
RGBrgb(138, 27, 180)
HSLhsl(284, 74%, 41%)
HSVhsv(284, 85%, 71%)
CMYKcmyk(23.3%, 85%, 0%, 29.4%)
CIE-LABlab(36.90, 64.91, -56.65)
CIE-LCHlch(36.90, 86.15, 318.88°)
OKLaboklab(48.56% 0.1537 -0.1604)
OKLCHoklch(48.56% 0.222 313.8)
XYZxyz(19.1099, 9.4831, 43.9949)
Luminance0.0948 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1BB4 #45B41B
analogous
#3D1BB4 #8A1BB4 #B41B92
triadic
#8A1BB4 #B48A1B #1BB48A
tetradic
#8A1BB4 #B43D1B #45B41B #1B92B4
square
#8A1BB4 #B43D1B #45B41B #1B92B4
split-complementary
#8A1BB4 #92B41B #1BB43D
monochromatic
#380B4A #61137F #8A1BB4 #AE2DDF #C362E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A1BB4#FFFFFF#000000##FFFFFF
##8A1BB41.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)
#0051B8
Deuteranopia (green-blind)
#0059B1
Tritanopia (blue-blind)
#86446B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a1bb4;
/* rgb */ color: rgb(138, 27, 180);
/* oklch */ color: oklch(48.6% 0.222 313.8);
Tailwind
colors: {
  custom: {
    50: '#b169cb',
    500: '#8a1bb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a1bb4;
$custom-light: #b169cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1bb4",
  "rgb": {
    "r": 138,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 283.529,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4856,
    "c": 0.22212,
    "h": 313.8
  },
  "luminance": 0.09482
}

Semantic roles & 50–950 ramp

primary
#8A1BB4
secondary
#7DCC5F
accent
#F1376A
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A1BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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