#8A3DB8#8A3DB8

#8A3DB8 is a mid, vivid violet. Relative luminance 0.122; OKLCH L 51.9% C 0.190 H 310.1°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#8A3DB8
RGBrgb(138, 61, 184)
HSLhsl(278, 50%, 48%)
HSVhsv(278, 67%, 72%)
CMYKcmyk(25%, 66.8%, 0%, 27.8%)
CIE-LABlab(41.54, 53.31, -51.52)
CIE-LCHlch(41.54, 74.14, 315.98°)
OKLaboklab(51.93% 0.1227 -0.1455)
OKLCHoklch(51.93% 0.19 310.1)
XYZxyz(20.8000, 12.2019, 46.5976)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DB8 #6BB83D
analogous
#4C3DB8 #8A3DB8 #B83DA8
triadic
#8A3DB8 #B88A3D #3DB88A
tetradic
#8A3DB8 #B84C3D #6BB83D #3DA8B8
square
#8A3DB8 #B84C3D #6BB83D #3DA8B8
split-complementary
#8A3DB8 #A8B83D #3DB84C
monochromatic
#451F5C #682E8A #8A3DB8 #A666CC #C194DB

Accessibility & contrast

On white

6.10
#8A3DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8A3DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DB8
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DB8#FFFFFF#000000##FFFFFF
##8A3DB81.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#2B63B5
Tritanopia (blue-blind)
#845775
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3db8;
/* rgb */ color: rgb(138, 61, 184);
/* oklch */ color: oklch(51.9% 0.190 310.1);
Tailwind
colors: {
  custom: {
    50: '#b078ce',
    500: '#8a3db8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3db8;
$custom-light: #b078ce;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3db8",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 184
  },
  "hsl": {
    "h": 277.561,
    "s": 50.204,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5193,
    "c": 0.19037,
    "h": 310.1
  },
  "luminance": 0.12201
}

Semantic roles & 50–950 ramp

primary
#8A3DB8
secondary
#A1C78A
accent
#DA4E82
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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