#8A36C9#8A36C9

#8A36C9 is a mid, highly saturated violet. Relative luminance 0.123; OKLCH L 52.4% C 0.216 H 306.2°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A36C9
RGBrgb(138, 54, 201)
HSLhsl(274, 58%, 50%)
HSVhsv(274, 73%, 79%)
CMYKcmyk(31.3%, 73.1%, 0%, 21.2%)
CIE-LABlab(41.62, 60.19, -61.30)
CIE-LCHlch(41.62, 85.91, 314.48°)
OKLaboklab(52.37% 0.1277 -0.1742)
OKLCHoklch(52.37% 0.216 306.2)
XYZxyz(22.3407, 12.2589, 56.4363)
Luminance0.1226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36C9 #75C936
analogous
#4136C9 #8A36C9 #C936BE
triadic
#8A36C9 #C98A36 #36C98A
tetradic
#8A36C9 #C94136 #75C936 #36BEC9
square
#8A36C9 #C94136 #75C936 #36BEC9
split-complementary
#8A36C9 #BEC936 #36C941
monochromatic
#481C69 #692999 #8A36C9 #A666D6 #C296E3

Accessibility & contrast

On white

6.08
#8A36C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A36C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36C9
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36C9#FFFFFF#000000##FFFFFF
##8A36C91.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060CD
Deuteranopia (green-blind)
#0063C6
Tritanopia (blue-blind)
#7F597D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a36c9;
/* rgb */ color: rgb(138, 54, 201);
/* oklch */ color: oklch(52.4% 0.216 306.2);
Tailwind
colors: {
  custom: {
    50: '#b175da',
    500: '#8a36c9',
    950: '#000000',
  },
}
SCSS
$custom: #8a36c9;
$custom-light: #b175da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36c9",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 201
  },
  "hsl": {
    "h": 274.286,
    "s": 57.647,
    "l": 50
  },
  "oklch": {
    "l": 0.52369,
    "c": 0.21603,
    "h": 306.2
  },
  "luminance": 0.12259
}

Semantic roles & 50–950 ramp

primary
#8A36C9
secondary
#A9CE8C
accent
#E14789
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A36C9

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

Preview Lab → · Contrast checker → · Palette generator →

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