#8A1EB2#8A1EB2

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

Color values

HEX#8A1EB2
RGBrgb(138, 30, 178)
HSLhsl(284, 71%, 41%)
HSVhsv(284, 83%, 70%)
CMYKcmyk(22.5%, 83.1%, 0%, 30.2%)
CIE-LABlab(37.02, 63.73, -55.27)
CIE-LCHlch(37.02, 84.36, 319.06°)
OKLaboklab(48.6% 0.1522 -0.1564)
OKLCHoklch(48.6% 0.218 314.2)
XYZxyz(18.9800, 9.5469, 42.9538)
Luminance0.0955 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A1EB2 #46B21E
analogous
#401EB2 #8A1EB2 #B21E90
triadic
#8A1EB2 #B28A1E #1EB28A
tetradic
#8A1EB2 #B2401E #46B21E #1E90B2
square
#8A1EB2 #B2401E #46B21E #1E90B2
split-complementary
#8A1EB2 #90B21E #1EB240
monochromatic
#390C49 #61157E #8A1EB2 #AE31DC #C365E5

Accessibility & contrast

On white

7.22
#8A1EB2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.91
#8A1EB2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A1EB2
7.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A1EB2#FFFFFF#000000##FFFFFF
##8A1EB21.007.222.917.22
#FFFFFF7.221.0021.001.00
#0000002.9121.001.0021.00
##FFFFFF7.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052B6
Deuteranopia (green-blind)
#0A59AF
Tritanopia (blue-blind)
#86446A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a1eb2;
/* rgb */ color: rgb(138, 30, 178);
/* oklch */ color: oklch(48.6% 0.218 314.2);
Tailwind
colors: {
  custom: {
    50: '#b16aca',
    500: '#8a1eb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a1eb2;
$custom-light: #b16aca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a1eb2",
  "rgb": {
    "r": 138,
    "g": 30,
    "b": 178
  },
  "hsl": {
    "h": 283.784,
    "s": 71.154,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48596,
    "c": 0.2182,
    "h": 314.2
  },
  "luminance": 0.09546
}

Semantic roles & 50–950 ramp

primary
#8A1EB2
secondary
#7ECA62
accent
#EE3A6B
background
#FBF6FC
surface
#F6ECF8
border
#D0C7D1
text
#110713
muted
#807A82

Preview Lab

Preview with #8A1EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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