#8A36D3#8A36D3

#8A36D3 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 53.1% C 0.226 H 303.8°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8A36D3
RGBrgb(138, 54, 211)
HSLhsl(272, 64%, 52%)
HSVhsv(272, 74%, 83%)
CMYKcmyk(34.6%, 74.4%, 0%, 17.3%)
CIE-LABlab(42.38, 62.44, -65.86)
CIE-LCHlch(42.38, 90.76, 313.47°)
OKLaboklab(53.14% 0.1257 -0.1876)
OKLCHoklch(53.14% 0.226 303.8)
XYZxyz(23.5555, 12.7448, 62.8344)
Luminance0.1275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36D3 #7FD336
analogous
#3C36D3 #8A36D3 #D336CE
triadic
#8A36D3 #D38A36 #36D38A
tetradic
#8A36D3 #D33C36 #7FD336 #36CED3
square
#8A36D3 #D33C36 #7FD336 #36CED3
split-complementary
#8A36D3 #CED336 #36D33C
monochromatic
#4B1A75 #6A25A7 #8A36D3 #A768DE #C49AE9

Accessibility & contrast

On white

5.92
#8A36D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8A36D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36D3
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36D3#FFFFFF#000000##FFFFFF
##8A36D31.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062D7
Deuteranopia (green-blind)
#0064D0
Tritanopia (blue-blind)
#7B5D82
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a36d3;
/* rgb */ color: rgb(138, 54, 211);
/* oklch */ color: oklch(53.1% 0.226 303.8);
Tailwind
colors: {
  custom: {
    50: '#b275e2',
    500: '#8a36d3',
    950: '#000000',
  },
}
SCSS
$custom: #8a36d3;
$custom-light: #b275e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36d3",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 211
  },
  "hsl": {
    "h": 272.102,
    "s": 64.082,
    "l": 51.961
  },
  "oklch": {
    "l": 0.53135,
    "c": 0.22587,
    "h": 303.8
  },
  "luminance": 0.12745
}

Semantic roles & 50–950 ramp

primary
#8A36D3
secondary
#B0D590
accent
#E7418E
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8A36D3

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

Preview Lab → · Contrast checker → · Palette generator →

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