#8A3DB9#8A3DB9

#8A3DB9 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 52.0% C 0.191 H 309.8°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8A3DB9
RGBrgb(138, 61, 185)
HSLhsl(277, 50%, 48%)
HSVhsv(277, 67%, 73%)
CMYKcmyk(25.4%, 67%, 0%, 27.5%)
CIE-LABlab(41.60, 53.53, -52.00)
CIE-LCHlch(41.60, 74.63, 315.83°)
OKLaboklab(52% 0.1227 -0.1469)
OKLCHoklch(52% 0.191 309.8)
XYZxyz(20.9052, 12.2440, 47.1516)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DB9 #6CB93D
analogous
#4C3DB9 #8A3DB9 #B93DAA
triadic
#8A3DB9 #B98A3D #3DB98A
tetradic
#8A3DB9 #B94C3D #6CB93D #3DAAB9
square
#8A3DB9 #B94C3D #6CB93D #3DAAB9
split-complementary
#8A3DB9 #AAB93D #3DB94C
monochromatic
#451F5D #682E8B #8A3DB9 #A666CD #C195DC

Accessibility & contrast

On white

6.09
#8A3DB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A3DB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DB9
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DB9#FFFFFF#000000##FFFFFF
##8A3DB91.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#2A63B6
Tritanopia (blue-blind)
#835776
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3db9;
/* rgb */ color: rgb(138, 61, 185);
/* oklch */ color: oklch(52.0% 0.191 309.8);
Tailwind
colors: {
  custom: {
    50: '#b078cf',
    500: '#8a3db9',
    950: '#000000',
  },
}
SCSS
$custom: #8a3db9;
$custom-light: #b078cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3db9",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 185
  },
  "hsl": {
    "h": 277.258,
    "s": 50.407,
    "l": 48.235
  },
  "oklch": {
    "l": 0.51998,
    "c": 0.19141,
    "h": 309.8
  },
  "luminance": 0.12244
}

Semantic roles & 50–950 ramp

primary
#8A3DB9
secondary
#A2C78B
accent
#DA4E83
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3DB9

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

Preview Lab → · Contrast checker → · Palette generator →

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