#8A3DB2#8A3DB2

#8A3DB2 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.5% C 0.184 H 312.0°. Best body text is #FFFFFF at 6.19:1 contrast (WCAG AA passes).

Color values

HEX#8A3DB2
RGBrgb(138, 61, 178)
HSLhsl(279, 49%, 47%)
HSVhsv(279, 66%, 70%)
CMYKcmyk(22.5%, 65.7%, 0%, 30.2%)
CIE-LABlab(41.15, 51.99, -48.61)
CIE-LCHlch(41.15, 71.18, 316.92°)
OKLaboklab(51.53% 0.1232 -0.137)
OKLCHoklch(51.53% 0.184 312)
XYZxyz(20.1844, 11.9556, 43.3552)
Luminance0.1196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DB2 #65B23D
analogous
#503DB2 #8A3DB2 #B23DA0
triadic
#8A3DB2 #B28A3D #3DB28A
tetradic
#8A3DB2 #B2503D #65B23D #3DA0B2
square
#8A3DB2 #B2503D #65B23D #3DA0B2
split-complementary
#8A3DB2 #A0B23D #3DB250
monochromatic
#431E57 #672D84 #8A3DB2 #A663C9 #C090D9

Accessibility & contrast

On white

6.19
#8A3DB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8A3DB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DB2
6.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DB2#FFFFFF#000000##FFFFFF
##8A3DB21.006.193.396.19
#FFFFFF6.191.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB6
Deuteranopia (green-blind)
#3263AF
Tritanopia (blue-blind)
#855472
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3db2;
/* rgb */ color: rgb(138, 61, 178);
/* oklch */ color: oklch(51.5% 0.184 312.0);
Tailwind
colors: {
  custom: {
    50: '#b078ca',
    500: '#8a3db2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3db2;
$custom-light: #b078ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3db2",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 178
  },
  "hsl": {
    "h": 279.487,
    "s": 48.954,
    "l": 46.863
  },
  "oklch": {
    "l": 0.51525,
    "c": 0.18421,
    "h": 312
  },
  "luminance": 0.11955
}

Semantic roles & 50–950 ramp

primary
#8A3DB2
secondary
#9CC487
accent
#D94F7E
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3DB2

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

Preview Lab → · Contrast checker → · Palette generator →

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