#8C36BA#8C36BA

#8C36BA is a mid, highly saturated violet. Relative luminance 0.118; OKLCH L 51.5% C 0.202 H 311.1°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8C36BA
RGBrgb(140, 54, 186)
HSLhsl(279, 55%, 47%)
HSVhsv(279, 71%, 73%)
CMYKcmyk(24.7%, 71%, 0%, 27.1%)
CIE-LABlab(40.83, 57.29, -53.81)
CIE-LCHlch(40.83, 78.60, 316.79°)
OKLaboklab(51.53% 0.1327 -0.1522)
OKLCHoklch(51.53% 0.202 311.1)
XYZxyz(20.9956, 11.7595, 47.6086)
Luminance0.1176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8C36BA #64BA36
analogous
#4A36BA #8C36BA #BA36A6
triadic
#8C36BA #BA8C36 #36BA8C
tetradic
#8C36BA #BA4A36 #64BA36 #36A6BA
square
#8C36BA #BA4A36 #64BA36 #36A6BA
split-complementary
#8C36BA #A6BA36 #36BA4A
monochromatic
#451A5B #68288B #8C36BA #A85DD0 #C28DDE

Accessibility & contrast

On white

6.27
#8C36BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8C36BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8C36BA
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8C36BA#FFFFFF#000000##FFFFFF
##8C36BA1.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBE
Deuteranopia (green-blind)
#2262B7
Tritanopia (blue-blind)
#865374
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8c36ba;
/* rgb */ color: rgb(140, 54, 186);
/* oklch */ color: oklch(51.5% 0.202 311.1);
Tailwind
colors: {
  custom: {
    50: '#b274cf',
    500: '#8c36ba',
    950: '#000000',
  },
}
SCSS
$custom: #8c36ba;
$custom-light: #b274cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8c36ba",
  "rgb": {
    "r": 140,
    "g": 54,
    "b": 186
  },
  "hsl": {
    "h": 279.091,
    "s": 55,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51527,
    "c": 0.2019,
    "h": 311.1
  },
  "luminance": 0.11759
}

Semantic roles & 50–950 ramp

primary
#8C36BA
secondary
#9CC884
accent
#DE497D
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8C36BA

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

Preview Lab → · Contrast checker → · Palette generator →

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