#8A39B0#8A39B0

#8A39B0 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.9% C 0.188 H 313.0°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8A39B0
RGBrgb(138, 57, 176)
HSLhsl(281, 51%, 46%)
HSVhsv(281, 68%, 69%)
CMYKcmyk(21.6%, 67.6%, 0%, 31%)
CIE-LABlab(40.35, 53.40, -48.70)
CIE-LCHlch(40.35, 72.27, 317.63°)
OKLaboklab(50.91% 0.1279 -0.1372)
OKLCHoklch(50.91% 0.188 313)
XYZxyz(19.7795, 11.4647, 42.2368)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39B0 #5FB039
analogous
#4E39B0 #8A39B0 #B0399A
triadic
#8A39B0 #B08A39 #39B08A
tetradic
#8A39B0 #B04E39 #5FB039 #399AB0
square
#8A39B0 #B04E39 #5FB039 #399AB0
split-complementary
#8A39B0 #9AB039 #39B04E
monochromatic
#421B54 #662A82 #8A39B0 #A75CCA #C08AD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A39B0#FFFFFF#000000##FFFFFF
##8A39B01.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)
#005BB4
Deuteranopia (green-blind)
#3061AD
Tritanopia (blue-blind)
#865170
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a39b0;
/* rgb */ color: rgb(138, 57, 176);
/* oklch */ color: oklch(50.9% 0.188 313.0);
Tailwind
colors: {
  custom: {
    50: '#b076c8',
    500: '#8a39b0',
    950: '#000000',
  },
}
SCSS
$custom: #8a39b0;
$custom-light: #b076c8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39b0",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 176
  },
  "hsl": {
    "h": 280.84,
    "s": 51.073,
    "l": 45.686
  },
  "oklch": {
    "l": 0.50914,
    "c": 0.18759,
    "h": 313
  },
  "luminance": 0.11464
}

Semantic roles & 50–950 ramp

primary
#8A39B0
secondary
#96C481
accent
#DB4D7A
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A39B0

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

Preview Lab → · Contrast checker → · Palette generator →

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