#8A18B4#8A18B4

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

Color values

HEX#8A18B4
RGBrgb(138, 24, 180)
HSLhsl(284, 76%, 40%)
HSVhsv(284, 87%, 71%)
CMYKcmyk(23.3%, 86.7%, 0%, 29.4%)
CIE-LABlab(36.65, 65.62, -57.05)
CIE-LCHlch(36.65, 86.96, 319.00°)
OKLaboklab(48.39% 0.1554 -0.1615)
OKLCHoklch(48.39% 0.224 313.9)
XYZxyz(19.0446, 9.3525, 43.9732)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A18B4 #42B418
analogous
#3C18B4 #8A18B4 #B41890
triadic
#8A18B4 #B48A18 #18B48A
tetradic
#8A18B4 #B43C18 #42B418 #1890B4
square
#8A18B4 #B43C18 #42B418 #1890B4
split-complementary
#8A18B4 #90B418 #18B43C
monochromatic
#370A48 #61117E #8A18B4 #B027E2 #C45DE9

Accessibility & contrast

On white

7.32
#8A18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A18B4
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A18B4#FFFFFF#000000##FFFFFF
##8A18B41.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a18b4;
/* rgb */ color: rgb(138, 24, 180);
/* oklch */ color: oklch(48.4% 0.224 313.9);
Tailwind
colors: {
  custom: {
    50: '#b168cb',
    500: '#8a18b4',
    950: '#000000',
  },
}
SCSS
$custom: #8a18b4;
$custom-light: #b168cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a18b4",
  "rgb": {
    "r": 138,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 283.846,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.48391,
    "c": 0.22416,
    "h": 313.9
  },
  "luminance": 0.09352
}

Semantic roles & 50–950 ramp

primary
#8A18B4
secondary
#79CD5B
accent
#F33568
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#110713
muted
#807A82

Preview Lab

Preview with #8A18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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