#8D18B4#8D18B4

#8D18B4 is a mid, highly saturated purple. Relative luminance 0.096; OKLCH L 48.8% C 0.225 H 315.0°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#8D18B4
RGBrgb(141, 24, 180)
HSLhsl(285, 76%, 40%)
HSVhsv(285, 87%, 71%)
CMYKcmyk(21.7%, 86.7%, 0%, 29.4%)
CIE-LABlab(37.14, 66.10, -56.24)
CIE-LCHlch(37.14, 86.79, 319.61°)
OKLaboklab(48.82% 0.1592 -0.1591)
OKLCHoklch(48.82% 0.225 315)
XYZxyz(19.5480, 9.6120, 43.9968)
Luminance0.0961 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D18B4 #3FB418
analogous
#3F18B4 #8D18B4 #B4188D
triadic
#8D18B4 #B48D18 #18B48D
tetradic
#8D18B4 #B43F18 #3FB418 #188DB4
square
#8D18B4 #B43F18 #3FB418 #188DB4
split-complementary
#8D18B4 #8DB418 #18B43F
monochromatic
#380A48 #63117E #8D18B4 #B327E2 #C65DE9

Accessibility & contrast

On white

7.19
#8D18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8D18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8D18B4
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D18B4#FFFFFF#000000##FFFFFF
##8D18B41.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B8
Deuteranopia (green-blind)
#055AB1
Tritanopia (blue-blind)
#89426B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8d18b4;
/* rgb */ color: rgb(141, 24, 180);
/* oklch */ color: oklch(48.8% 0.225 315.0);
Tailwind
colors: {
  custom: {
    50: '#b368cb',
    500: '#8d18b4',
    950: '#000000',
  },
}
SCSS
$custom: #8d18b4;
$custom-light: #b368cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8d18b4",
  "rgb": {
    "r": 141,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 285,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.48821,
    "c": 0.22507,
    "h": 315
  },
  "luminance": 0.09611
}

Semantic roles & 50–950 ramp

primary
#8D18B4
secondary
#77CD5B
accent
#F33564
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120713
muted
#817A82

Preview Lab

Preview with #8D18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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