#8A39D7#8A39D7

#8A39D7 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.8% C 0.227 H 302.6°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A39D7
RGBrgb(138, 57, 215)
HSLhsl(271, 66%, 53%)
HSVhsv(271, 73%, 84%)
CMYKcmyk(35.8%, 73.5%, 0%, 15.7%)
CIE-LABlab(43.12, 62.12, -66.96)
CIE-LCHlch(43.12, 91.34, 312.86°)
OKLaboklab(53.75% 0.1222 -0.1909)
OKLCHoklch(53.75% 0.227 302.6)
XYZxyz(24.2072, 13.2358, 65.5563)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39D7 #86D739
analogous
#3B39D7 #8A39D7 #D739D5
triadic
#8A39D7 #D78A39 #39D78A
tetradic
#8A39D7 #D73B39 #86D739 #39D5D7
square
#8A39D7 #D73B39 #86D739 #39D5D7
split-complementary
#8A39D7 #D5D739 #39D73B
monochromatic
#4C197C #6B23AF #8A39D7 #A86CE1 #C69FEC

Accessibility & contrast

On white

5.76
#8A39D7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8A39D7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A39D7
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A39D7#FFFFFF#000000##FFFFFF
##8A39D71.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DB
Deuteranopia (green-blind)
#0065D4
Tritanopia (blue-blind)
#7A6185
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a39d7;
/* rgb */ color: rgb(138, 57, 215);
/* oklch */ color: oklch(53.8% 0.227 302.6);
Tailwind
colors: {
  custom: {
    50: '#b277e4',
    500: '#8a39d7',
    950: '#000000',
  },
}
SCSS
$custom: #8a39d7;
$custom-light: #b277e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39d7",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 215
  },
  "hsl": {
    "h": 270.759,
    "s": 66.387,
    "l": 53.333
  },
  "oklch": {
    "l": 0.53752,
    "c": 0.22666,
    "h": 302.6
  },
  "luminance": 0.13236
}

Semantic roles & 50–950 ramp

primary
#8A39D7
secondary
#B5D894
accent
#E93E92
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A39D7

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

Preview Lab → · Contrast checker → · Palette generator →

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