#8A36B7#8A36B7

#8A36B7 is a mid, vivid violet. Relative luminance 0.115; OKLCH L 51.1% C 0.198 H 311.1°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8A36B7
RGBrgb(138, 54, 183)
HSLhsl(279, 54%, 46%)
HSVhsv(279, 70%, 72%)
CMYKcmyk(24.6%, 70.5%, 0%, 28.2%)
CIE-LABlab(40.35, 56.23, -52.85)
CIE-LCHlch(40.35, 77.16, 316.78°)
OKLaboklab(51.06% 0.1305 -0.1494)
OKLCHoklch(51.06% 0.198 311.1)
XYZxyz(20.3460, 11.4610, 45.9310)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A36B7 #63B736
analogous
#4A36B7 #8A36B7 #B736A4
triadic
#8A36B7 #B78A36 #36B78A
tetradic
#8A36B7 #B74A36 #63B736 #36A4B7
square
#8A36B7 #B74A36 #63B736 #36A4B7
split-complementary
#8A36B7 #A4B736 #36B74A
monochromatic
#431A58 #662888 #8A36B7 #A75BCF #C08BDD

Accessibility & contrast

On white

6.38
#8A36B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8A36B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A36B7
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A36B7#FFFFFF#000000##FFFFFF
##8A36B71.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBB
Deuteranopia (green-blind)
#2361B4
Tritanopia (blue-blind)
#845273
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a36b7;
/* rgb */ color: rgb(138, 54, 183);
/* oklch */ color: oklch(51.1% 0.198 311.1);
Tailwind
colors: {
  custom: {
    50: '#b074cd',
    500: '#8a36b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a36b7;
$custom-light: #b074cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a36b7",
  "rgb": {
    "r": 138,
    "g": 54,
    "b": 183
  },
  "hsl": {
    "h": 279.07,
    "s": 54.43,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51058,
    "c": 0.19833,
    "h": 311.1
  },
  "luminance": 0.11461
}

Semantic roles & 50–950 ramp

primary
#8A36B7
secondary
#9AC782
accent
#DE4A7E
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A36B7

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

Preview Lab → · Contrast checker → · Palette generator →

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