#8A3DB3#8A3DB3

#8A3DB3 is a mid, vivid violet. Relative luminance 0.120; OKLCH L 51.6% C 0.185 H 311.6°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8A3DB3
RGBrgb(138, 61, 179)
HSLhsl(279, 49%, 47%)
HSVhsv(279, 66%, 70%)
CMYKcmyk(22.9%, 65.9%, 0%, 29.8%)
CIE-LABlab(41.21, 52.21, -49.10)
CIE-LCHlch(41.21, 71.67, 316.76°)
OKLaboklab(51.59% 0.1231 -0.1384)
OKLCHoklch(51.59% 0.185 311.6)
XYZxyz(20.2852, 11.9959, 43.8859)
Luminance0.1200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DB3 #66B33D
analogous
#4F3DB3 #8A3DB3 #B33DA1
triadic
#8A3DB3 #B38A3D #3DB38A
tetradic
#8A3DB3 #B34F3D #66B33D #3DA1B3
square
#8A3DB3 #B34F3D #66B33D #3DA1B3
split-complementary
#8A3DB3 #A1B33D #3DB34F
monochromatic
#441E58 #672D85 #8A3DB3 #A663CA #C091D9

Accessibility & contrast

On white

6.18
#8A3DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8A3DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DB3
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DB3#FFFFFF#000000##FFFFFF
##8A3DB31.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB7
Deuteranopia (green-blind)
#3163B0
Tritanopia (blue-blind)
#855573
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3db3;
/* rgb */ color: rgb(138, 61, 179);
/* oklch */ color: oklch(51.6% 0.185 311.6);
Tailwind
colors: {
  custom: {
    50: '#b078ca',
    500: '#8a3db3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3db3;
$custom-light: #b078ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3db3",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 179
  },
  "hsl": {
    "h": 279.153,
    "s": 49.167,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51592,
    "c": 0.18524,
    "h": 311.6
  },
  "luminance": 0.11995
}

Semantic roles & 50–950 ramp

primary
#8A3DB3
secondary
#9DC587
accent
#D94F7F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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