#8A36C5#8A36C5

#8A36C5 is a mid, highly saturated violet. Relative luminance 0.121; OKLCH L 52.1% C 0.212 H 307.3°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8A36C5
RGBrgb(138, 54, 197)
HSLhsl(275, 57%, 49%)
HSVhsv(275, 73%, 77%)
CMYKcmyk(29.9%, 72.6%, 0%, 22.7%)
CIE-LABlab(41.33, 59.30, -59.45)
CIE-LCHlch(41.33, 83.97, 314.93°)
OKLaboklab(52.07% 0.1284 -0.1688)
OKLCHoklch(52.07% 0.212 307.3)
XYZxyz(21.8763, 12.0731, 53.9904)
Luminance0.1207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36C5 #71C536
analogous
#4336C5 #8A36C5 #C536B9
triadic
#8A36C5 #C58A36 #36C58A
tetradic
#8A36C5 #C54336 #71C536 #36B9C5
square
#8A36C5 #C54336 #71C536 #36B9C5
split-complementary
#8A36C5 #B9C536 #36C543
monochromatic
#471C65 #682995 #8A36C5 #A664D4 #C294E2

Accessibility & contrast

On white

6.15
#8A36C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8A36C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36C5
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36C5#FFFFFF#000000##FFFFFF
##8A36C51.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FC9
Deuteranopia (green-blind)
#0062C2
Tritanopia (blue-blind)
#80587B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a36c5;
/* rgb */ color: rgb(138, 54, 197);
/* oklch */ color: oklch(52.1% 0.212 307.3);
Tailwind
colors: {
  custom: {
    50: '#b175d7',
    500: '#8a36c5',
    950: '#000000',
  },
}
SCSS
$custom: #8a36c5;
$custom-light: #b175d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36c5",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 197
  },
  "hsl": {
    "h": 275.245,
    "s": 56.972,
    "l": 49.216
  },
  "oklch": {
    "l": 0.5207,
    "c": 0.2121,
    "h": 307.3
  },
  "luminance": 0.12073
}

Semantic roles & 50–950 ramp

primary
#8A36C5
secondary
#A6CD8A
accent
#E04887
background
#FBF7FD
surface
#F6EDFA
border
#D0C8D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A36C5

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

Preview Lab → · Contrast checker → · Palette generator →

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