#8A3DBB#8A3DBB

#8A3DBB is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.1% C 0.193 H 309.3°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8A3DBB
RGBrgb(138, 61, 187)
HSLhsl(277, 51%, 49%)
HSVhsv(277, 67%, 73%)
CMYKcmyk(26.2%, 67.4%, 0%, 26.7%)
CIE-LABlab(41.73, 53.98, -52.96)
CIE-LCHlch(41.73, 75.62, 315.55°)
OKLaboklab(52.14% 0.1225 -0.1498)
OKLCHoklch(52.14% 0.193 309.3)
XYZxyz(21.1178, 12.3290, 48.2713)
Luminance0.1233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DBB #6EBB3D
analogous
#4B3DBB #8A3DBB #BB3DAD
triadic
#8A3DBB #BB8A3D #3DBB8A
tetradic
#8A3DBB #BB4B3D #6EBB3D #3DADBB
square
#8A3DBB #BB4B3D #6EBB3D #3DADBB
split-complementary
#8A3DBB #ADBB3D #3DBB4B
monochromatic
#461F5F #682E8D #8A3DBB #A668CE #C196DD

Accessibility & contrast

On white

6.06
#8A3DBB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8A3DBB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DBB
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DBB#FFFFFF#000000##FFFFFF
##8A3DBB1.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBF
Deuteranopia (green-blind)
#2764B8
Tritanopia (blue-blind)
#835877
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3dbb;
/* rgb */ color: rgb(138, 61, 187);
/* oklch */ color: oklch(52.1% 0.193 309.3);
Tailwind
colors: {
  custom: {
    50: '#b078d0',
    500: '#8a3dbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a3dbb;
$custom-light: #b078d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3dbb",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 187
  },
  "hsl": {
    "h": 276.667,
    "s": 50.806,
    "l": 48.627
  },
  "oklch": {
    "l": 0.52136,
    "c": 0.19346,
    "h": 309.3
  },
  "luminance": 0.12329
}

Semantic roles & 50–950 ramp

primary
#8A3DBB
secondary
#A3C88C
accent
#DA4E84
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3DBB

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

Preview Lab → · Contrast checker → · Palette generator →

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