#8A3DB7#8A3DB7

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

Color values

HEX#8A3DB7
RGBrgb(138, 61, 183)
HSLhsl(278, 50%, 48%)
HSVhsv(278, 67%, 72%)
CMYKcmyk(24.6%, 66.7%, 0%, 28.2%)
CIE-LABlab(41.47, 53.09, -51.04)
CIE-LCHlch(41.47, 73.64, 316.13°)
OKLaboklab(51.86% 0.1228 -0.1441)
OKLCHoklch(51.86% 0.189 310.4)
XYZxyz(20.6956, 12.1601, 46.0475)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DB7 #6AB73D
analogous
#4D3DB7 #8A3DB7 #B73DA7
triadic
#8A3DB7 #B78A3D #3DB78A
tetradic
#8A3DB7 #B74D3D #6AB73D #3DA7B7
square
#8A3DB7 #B74D3D #6AB73D #3DA7B7
split-complementary
#8A3DB7 #A7B73D #3DB74D
monochromatic
#451E5B #672E89 #8A3DB7 #A665CC #C193DB

Accessibility & contrast

On white

6.12
#8A3DB7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8A3DB7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DB7
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DB7#FFFFFF#000000##FFFFFF
##8A3DB71.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBB
Deuteranopia (green-blind)
#2C63B4
Tritanopia (blue-blind)
#845675
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3db7;
/* rgb */ color: rgb(138, 61, 183);
/* oklch */ color: oklch(51.9% 0.189 310.4);
Tailwind
colors: {
  custom: {
    50: '#b078cd',
    500: '#8a3db7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3db7;
$custom-light: #b078cd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3db7",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 183
  },
  "hsl": {
    "h": 277.869,
    "s": 50,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51862,
    "c": 0.18935,
    "h": 310.4
  },
  "luminance": 0.1216
}

Semantic roles & 50–950 ramp

primary
#8A3DB7
secondary
#A0C689
accent
#DA4E82
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3DB7

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

Preview Lab → · Contrast checker → · Palette generator →

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