#8A39B3#8A39B3

#8A39B3 is a mid, vivid violet. Relative luminance 0.116; OKLCH L 51.1% C 0.191 H 312.0°. Best body text is #FFFFFF at 6.33:1 contrast (WCAG AA passes).

Color values

HEX#8A39B3
RGBrgb(138, 57, 179)
HSLhsl(280, 52%, 46%)
HSVhsv(280, 68%, 70%)
CMYKcmyk(22.9%, 68.2%, 0%, 29.8%)
CIE-LABlab(40.55, 54.05, -50.16)
CIE-LCHlch(40.55, 73.74, 317.13°)
OKLaboklab(51.12% 0.1276 -0.1415)
OKLCHoklch(51.12% 0.191 312)
XYZxyz(20.0796, 11.5847, 43.8174)
Luminance0.1158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39B3 #62B339
analogous
#4D39B3 #8A39B3 #B3399F
triadic
#8A39B3 #B38A39 #39B38A
tetradic
#8A39B3 #B34D39 #62B339 #399FB3
square
#8A39B3 #B34D39 #62B339 #399FB3
split-complementary
#8A39B3 #9FB339 #39B34D
monochromatic
#421B56 #662A85 #8A39B3 #A75ECC #C08CDA

Accessibility & contrast

On white

6.33
#8A39B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A39B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A39B3
6.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A39B3#FFFFFF#000000##FFFFFF
##8A39B31.006.333.326.33
#FFFFFF6.331.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB7
Deuteranopia (green-blind)
#2D61B0
Tritanopia (blue-blind)
#855271
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a39b3;
/* rgb */ color: rgb(138, 57, 179);
/* oklch */ color: oklch(51.1% 0.191 312.0);
Tailwind
colors: {
  custom: {
    50: '#b076ca',
    500: '#8a39b3',
    950: '#000000',
  },
}
SCSS
$custom: #8a39b3;
$custom-light: #b076ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39b3",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 179
  },
  "hsl": {
    "h": 279.836,
    "s": 51.695,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51117,
    "c": 0.19058,
    "h": 312
  },
  "luminance": 0.11584
}

Semantic roles & 50–950 ramp

primary
#8A39B3
secondary
#99C583
accent
#DB4D7D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A39B3

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

Preview Lab → · Contrast checker → · Palette generator →

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