#8B18B4#8B18B4

#8B18B4 is a mid, highly saturated purple. Relative luminance 0.094; OKLCH L 48.5% C 0.224 H 314.3°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#8B18B4
RGBrgb(139, 24, 180)
HSLhsl(284, 76%, 40%)
HSVhsv(284, 87%, 71%)
CMYKcmyk(22.8%, 86.7%, 0%, 29.4%)
CIE-LABlab(36.81, 65.78, -56.78)
CIE-LCHlch(36.81, 86.90, 319.20°)
OKLaboklab(48.53% 0.1567 -0.1607)
OKLCHoklch(48.53% 0.224 314.3)
XYZxyz(19.2109, 9.4382, 43.9810)
Luminance0.0944 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B18B4 #41B418
analogous
#3D18B4 #8B18B4 #B4188F
triadic
#8B18B4 #B48B18 #18B48B
tetradic
#8B18B4 #B43D18 #41B418 #188FB4
square
#8B18B4 #B43D18 #41B418 #188FB4
split-complementary
#8B18B4 #8FB418 #18B43D
monochromatic
#380A48 #61117E #8B18B4 #B127E2 #C55DE9

Accessibility & contrast

On white

7.27
#8B18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8B18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8B18B4
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B18B4#FFFFFF#000000##FFFFFF
##8B18B41.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8b18b4;
/* rgb */ color: rgb(139, 24, 180);
/* oklch */ color: oklch(48.5% 0.224 314.3);
Tailwind
colors: {
  custom: {
    50: '#b268cb',
    500: '#8b18b4',
    950: '#000000',
  },
}
SCSS
$custom: #8b18b4;
$custom-light: #b268cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b18b4",
  "rgb": {
    "r": 139,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 284.231,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.48534,
    "c": 0.22446,
    "h": 314.3
  },
  "luminance": 0.09438
}

Semantic roles & 50–950 ramp

primary
#8B18B4
secondary
#79CD5B
accent
#F33567
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120713
muted
#817A82

Preview Lab

Preview with #8B18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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