#8A39B2#8A39B2

#8A39B2 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 51.0% C 0.190 H 312.4°. Best body text is #FFFFFF at 6.35:1 contrast (WCAG AA passes).

Color values

HEX#8A39B2
RGBrgb(138, 57, 178)
HSLhsl(280, 51%, 46%)
HSVhsv(280, 68%, 70%)
CMYKcmyk(22.5%, 68%, 0%, 30.2%)
CIE-LABlab(40.48, 53.83, -49.68)
CIE-LCHlch(40.48, 73.25, 317.30°)
OKLaboklab(51.05% 0.1277 -0.1401)
OKLCHoklch(51.05% 0.19 312.4)
XYZxyz(19.9788, 11.5444, 43.2867)
Luminance0.1154 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A39B2 #61B239
analogous
#4D39B2 #8A39B2 #B2399D
triadic
#8A39B2 #B28A39 #39B28A
tetradic
#8A39B2 #B24D39 #61B239 #399DB2
square
#8A39B2 #B24D39 #61B239 #399DB2
split-complementary
#8A39B2 #9DB239 #39B24D
monochromatic
#421B55 #662A84 #8A39B2 #A75DCB #C08BDA

Accessibility & contrast

On white

6.35
#8A39B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.31
#8A39B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A39B2
6.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A39B2#FFFFFF#000000##FFFFFF
##8A39B21.006.353.316.35
#FFFFFF6.351.0021.001.00
#0000003.3121.001.0021.00
##FFFFFF6.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB6
Deuteranopia (green-blind)
#2E61AF
Tritanopia (blue-blind)
#855271
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a39b2;
/* rgb */ color: rgb(138, 57, 178);
/* oklch */ color: oklch(51.0% 0.190 312.4);
Tailwind
colors: {
  custom: {
    50: '#b076ca',
    500: '#8a39b2',
    950: '#000000',
  },
}
SCSS
$custom: #8a39b2;
$custom-light: #b076ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a39b2",
  "rgb": {
    "r": 138,
    "g": 57,
    "b": 178
  },
  "hsl": {
    "h": 280.165,
    "s": 51.489,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51049,
    "c": 0.18957,
    "h": 312.4
  },
  "luminance": 0.11544
}

Semantic roles & 50–950 ramp

primary
#8A39B2
secondary
#98C482
accent
#DB4D7C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A39B2

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

Preview Lab → · Contrast checker → · Palette generator →

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