#8E18B4#8E18B4

#8E18B4 is a mid, highly saturated purple. Relative luminance 0.097; OKLCH L 49.0% C 0.225 H 315.4°. Best body text is #FFFFFF at 7.14:1 contrast (WCAG AA passes).

Color values

HEX#8E18B4
RGBrgb(142, 24, 180)
HSLhsl(285, 76%, 40%)
HSVhsv(285, 87%, 71%)
CMYKcmyk(21.1%, 86.7%, 0%, 29.4%)
CIE-LABlab(37.30, 66.26, -55.97)
CIE-LCHlch(37.30, 86.74, 319.81°)
OKLaboklab(48.97% 0.1605 -0.1582)
OKLCHoklch(48.97% 0.225 315.4)
XYZxyz(19.7188, 9.7001, 44.0048)
Luminance0.0970 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8E18B4 #3EB418
analogous
#4018B4 #8E18B4 #B4188C
triadic
#8E18B4 #B48E18 #18B48E
tetradic
#8E18B4 #B44018 #3EB418 #188CB4
square
#8E18B4 #B44018 #3EB418 #188CB4
split-complementary
#8E18B4 #8CB418 #18B440
monochromatic
#390A48 #63117E #8E18B4 #B527E2 #C75DE9

Accessibility & contrast

On white

7.14
#8E18B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8E18B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8E18B4
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8E18B4#FFFFFF#000000##FFFFFF
##8E18B41.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B8
Deuteranopia (green-blind)
#0A5BB1
Tritanopia (blue-blind)
#8B426B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8e18b4;
/* rgb */ color: rgb(142, 24, 180);
/* oklch */ color: oklch(49.0% 0.225 315.4);
Tailwind
colors: {
  custom: {
    50: '#b468cb',
    500: '#8e18b4',
    950: '#000000',
  },
}
SCSS
$custom: #8e18b4;
$custom-light: #b468cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8e18b4",
  "rgb": {
    "r": 142,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 285.385,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.48966,
    "c": 0.22537,
    "h": 315.4
  },
  "luminance": 0.09699
}

Semantic roles & 50–950 ramp

primary
#8E18B4
secondary
#76CD5B
accent
#F33563
background
#FBF6FC
surface
#F6ECF9
border
#D0C7D2
text
#120713
muted
#817A82

Preview Lab

Preview with #8E18B4

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

Preview Lab → · Contrast checker → · Palette generator →

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