#8A36D1#8A36D1

#8A36D1 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 53.0% C 0.224 H 304.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8A36D1
RGBrgb(138, 54, 209)
HSLhsl(273, 63%, 52%)
HSVhsv(273, 74%, 82%)
CMYKcmyk(34%, 74.2%, 0%, 18%)
CIE-LABlab(42.22, 61.99, -64.96)
CIE-LCHlch(42.22, 89.79, 313.66°)
OKLaboklab(52.98% 0.1262 -0.185)
OKLCHoklch(52.98% 0.224 304.3)
XYZxyz(23.3064, 12.6451, 61.5222)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36D1 #7DD136
analogous
#3D36D1 #8A36D1 #D136CB
triadic
#8A36D1 #D18A36 #36D18A
tetradic
#8A36D1 #D13D36 #7DD136 #36CBD1
square
#8A36D1 #D13D36 #7DD136 #36CBD1
split-complementary
#8A36D1 #CBD136 #36D13D
monochromatic
#4A1A72 #6A26A4 #8A36D1 #A768DC #C49AE8

Accessibility & contrast

On white

5.95
#8A36D1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A36D1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36D1
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36D1#FFFFFF#000000##FFFFFF
##8A36D11.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D5
Deuteranopia (green-blind)
#0064CE
Tritanopia (blue-blind)
#7C5D81
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a36d1;
/* rgb */ color: rgb(138, 54, 209);
/* oklch */ color: oklch(53.0% 0.224 304.3);
Tailwind
colors: {
  custom: {
    50: '#b275e0',
    500: '#8a36d1',
    950: '#000000',
  },
}
SCSS
$custom: #8a36d1;
$custom-light: #b275e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36d1",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 209
  },
  "hsl": {
    "h": 272.516,
    "s": 62.753,
    "l": 51.569
  },
  "oklch": {
    "l": 0.5298,
    "c": 0.2239,
    "h": 304.3
  },
  "luminance": 0.12645
}

Semantic roles & 50–950 ramp

primary
#8A36D1
secondary
#AFD38F
accent
#E6428D
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8A36D1

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

Preview Lab → · Contrast checker → · Palette generator →

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