#8A39BA#8A39BA

#8A39BA is a mid, vivid violet. Relative luminance 0.119; OKLCH L 51.6% C 0.198 H 310.0°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8A39BA
RGBrgb(138, 57, 186)
HSLhsl(278, 53%, 48%)
HSVhsv(278, 69%, 73%)
CMYKcmyk(25.8%, 69.4%, 0%, 27.1%)
CIE-LABlab(41.02, 55.57, -53.53)
CIE-LCHlch(41.02, 77.16, 316.07°)
OKLaboklab(51.6% 0.1269 -0.1514)
OKLCHoklch(51.6% 0.198 310)
XYZxyz(20.8056, 11.8751, 47.6410)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39BA #69BA39
analogous
#4939BA #8A39BA #BA39AA
triadic
#8A39BA #BA8A39 #39BA8A
tetradic
#8A39BA #BA4939 #69BA39 #39AABA
square
#8A39BA #BA4939 #69BA39 #39AABA
split-complementary
#8A39BA #AABA39 #39BA49
monochromatic
#441C5C #672B8B #8A39BA #A661CF #C190DD

Accessibility & contrast

On white

6.22
#8A39BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A39BA
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A39BA#FFFFFF#000000##FFFFFF
##8A39BA1.006.223.386.22
#FFFFFF6.221.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBE
Deuteranopia (green-blind)
#2362B7
Tritanopia (blue-blind)
#835575
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a39ba;
/* rgb */ color: rgb(138, 57, 186);
/* oklch */ color: oklch(51.6% 0.198 310.0);
Tailwind
colors: {
  custom: {
    50: '#b076cf',
    500: '#8a39ba',
    950: '#000000',
  },
}
SCSS
$custom: #8a39ba;
$custom-light: #b076cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39ba",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 186
  },
  "hsl": {
    "h": 277.674,
    "s": 53.086,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51601,
    "c": 0.19758,
    "h": 310
  },
  "luminance": 0.11875
}

Semantic roles & 50–950 ramp

primary
#8A39BA
secondary
#9FC887
accent
#DC4B81
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A39BA

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

Preview Lab → · Contrast checker → · Palette generator →

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