#8A36CC#8A36CC

#8A36CC is a mid, highly saturated violet. Relative luminance 0.124; OKLCH L 52.6% C 0.219 H 305.5°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8A36CC
RGBrgb(138, 54, 204)
HSLhsl(274, 60%, 51%)
HSVhsv(274, 74%, 80%)
CMYKcmyk(32.4%, 73.5%, 0%, 20%)
CIE-LABlab(41.85, 60.86, -62.68)
CIE-LCHlch(41.85, 87.37, 314.16°)
OKLaboklab(52.6% 0.1272 -0.1783)
OKLCHoklch(52.6% 0.219 305.5)
XYZxyz(22.6971, 12.4014, 58.3130)
Luminance0.1240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36CC #78CC36
analogous
#3F36CC #8A36CC #CC36C3
triadic
#8A36CC #CC8A36 #36CC8A
tetradic
#8A36CC #CC3F36 #78CC36 #36C3CC
square
#8A36CC #CC3F36 #78CC36 #36C3CC
split-complementary
#8A36CC #C3CC36 #36CC3F
monochromatic
#491B6C #69289D #8A36CC #A667D8 #C398E5

Accessibility & contrast

On white

6.03
#8A36CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8A36CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36CC
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36CC#FFFFFF#000000##FFFFFF
##8A36CC1.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060D0
Deuteranopia (green-blind)
#0063C9
Tritanopia (blue-blind)
#7E5B7E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a36cc;
/* rgb */ color: rgb(138, 54, 204);
/* oklch */ color: oklch(52.6% 0.219 305.5);
Tailwind
colors: {
  custom: {
    50: '#b275dc',
    500: '#8a36cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a36cc;
$custom-light: #b275dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36cc",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 204
  },
  "hsl": {
    "h": 273.6,
    "s": 59.524,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52596,
    "c": 0.21899,
    "h": 305.5
  },
  "luminance": 0.12401
}

Semantic roles & 50–950 ramp

primary
#8A36CC
secondary
#ABD08E
accent
#E3458A
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A36CC

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

Preview Lab → · Contrast checker → · Palette generator →

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