#8A39BB#8A39BB

#8A39BB is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.7% C 0.199 H 309.7°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A39BB
RGBrgb(138, 57, 187)
HSLhsl(277, 53%, 48%)
HSVhsv(277, 70%, 73%)
CMYKcmyk(26.2%, 69.5%, 0%, 26.7%)
CIE-LABlab(41.09, 55.79, -54.01)
CIE-LCHlch(41.09, 77.65, 315.93°)
OKLaboklab(51.67% 0.1268 -0.1528)
OKLCHoklch(51.67% 0.199 309.7)
XYZxyz(20.9122, 11.9178, 48.2028)
Luminance0.1192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39BB #6ABB39
analogous
#4939BB #8A39BB #BB39AB
triadic
#8A39BB #BB8A39 #39BB8A
tetradic
#8A39BB #BB4939 #6ABB39 #39ABBB
square
#8A39BB #BB4939 #6ABB39 #39ABBB
split-complementary
#8A39BB #ABBB39 #39BB49
monochromatic
#451C5D #672B8C #8A39BB #A662CF #C191DD

Accessibility & contrast

On white

6.21
#8A39BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8A39BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A39BB
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A39BB#FFFFFF#000000##FFFFFF
##8A39BB1.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBF
Deuteranopia (green-blind)
#2162B8
Tritanopia (blue-blind)
#835576
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a39bb;
/* rgb */ color: rgb(138, 57, 187);
/* oklch */ color: oklch(51.7% 0.199 309.7);
Tailwind
colors: {
  custom: {
    50: '#b076d0',
    500: '#8a39bb',
    950: '#000000',
  },
}
SCSS
$custom: #8a39bb;
$custom-light: #b076d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39bb",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 187
  },
  "hsl": {
    "h": 277.385,
    "s": 53.279,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51672,
    "c": 0.19859,
    "h": 309.7
  },
  "luminance": 0.11917
}

Semantic roles & 50–950 ramp

primary
#8A39BB
secondary
#A0C887
accent
#DD4B82
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A39BB

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

Preview Lab → · Contrast checker → · Palette generator →

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