#8A39B8#8A39B8

#8A39B8 is a mid, vivid violet. Relative luminance 0.118; OKLCH L 51.5% C 0.196 H 310.6°. Best body text is #FFFFFF at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#8A39B8
RGBrgb(138, 57, 184)
HSLhsl(278, 53%, 47%)
HSVhsv(278, 69%, 72%)
CMYKcmyk(25%, 69%, 0%, 27.8%)
CIE-LABlab(40.88, 55.13, -52.57)
CIE-LCHlch(40.88, 76.18, 316.36°)
OKLaboklab(51.46% 0.1272 -0.1486)
OKLCHoklch(51.46% 0.196 310.6)
XYZxyz(20.5944, 11.7907, 46.5290)
Luminance0.1179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39B8 #67B839
analogous
#4B39B8 #8A39B8 #B839A6
triadic
#8A39B8 #B88A39 #39B88A
tetradic
#8A39B8 #B84B39 #67B839 #39A6B8
square
#8A39B8 #B84B39 #67B839 #39A6B8
split-complementary
#8A39B8 #A6B839 #39B84B
monochromatic
#441C5B #672B89 #8A39B8 #A660CE #C08FDC

Accessibility & contrast

On white

6.25
#8A39B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.36
#8A39B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A39B8
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A39B8#FFFFFF#000000##FFFFFF
##8A39B81.006.253.366.25
#FFFFFF6.251.0021.001.00
#0000003.3621.001.0021.00
##FFFFFF6.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#2662B5
Tritanopia (blue-blind)
#845474
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a39b8;
/* rgb */ color: rgb(138, 57, 184);
/* oklch */ color: oklch(51.5% 0.196 310.6);
Tailwind
colors: {
  custom: {
    50: '#b076ce',
    500: '#8a39b8',
    950: '#000000',
  },
}
SCSS
$custom: #8a39b8;
$custom-light: #b076ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39b8",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 184
  },
  "hsl": {
    "h": 278.268,
    "s": 52.697,
    "l": 47.255
  },
  "oklch": {
    "l": 0.51462,
    "c": 0.19557,
    "h": 310.6
  },
  "luminance": 0.1179
}

Semantic roles & 50–950 ramp

primary
#8A39B8
secondary
#9DC786
accent
#DC4C80
background
#FBF7FC
surface
#F6EDF9
border
#D0C8D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A39B8

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

Preview Lab → · Contrast checker → · Palette generator →

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