#8A3DBA#8A3DBA

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

Color values

HEX#8A3DBA
RGBrgb(138, 61, 186)
HSLhsl(277, 51%, 48%)
HSVhsv(277, 67%, 73%)
CMYKcmyk(25.8%, 67.2%, 0%, 27.1%)
CIE-LABlab(41.67, 53.76, -52.48)
CIE-LCHlch(41.67, 75.13, 315.69°)
OKLaboklab(52.07% 0.1226 -0.1484)
OKLCHoklch(52.07% 0.192 309.6)
XYZxyz(21.0112, 12.2863, 47.7095)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DBA #6DBA3D
analogous
#4B3DBA #8A3DBA #BA3DAB
triadic
#8A3DBA #BA8A3D #3DBA8A
tetradic
#8A3DBA #BA4B3D #6DBA3D #3DABBA
square
#8A3DBA #BA4B3D #6DBA3D #3DABBA
split-complementary
#8A3DBA #ABBA3D #3DBA4B
monochromatic
#461F5E #682E8C #8A3DBA #A667CD #C195DC

Accessibility & contrast

On white

6.07
#8A3DBA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8A3DBA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DBA
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DBA#FFFFFF#000000##FFFFFF
##8A3DBA1.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBE
Deuteranopia (green-blind)
#2863B7
Tritanopia (blue-blind)
#835776
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3dba;
/* rgb */ color: rgb(138, 61, 186);
/* oklch */ color: oklch(52.1% 0.192 309.6);
Tailwind
colors: {
  custom: {
    50: '#b078cf',
    500: '#8a3dba',
    950: '#000000',
  },
}
SCSS
$custom: #8a3dba;
$custom-light: #b078cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3dba",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 186
  },
  "hsl": {
    "h": 276.96,
    "s": 50.607,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52067,
    "c": 0.19244,
    "h": 309.6
  },
  "luminance": 0.12286
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A3DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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