#8A3CBB#8A3CBB

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

Color values

HEX#8A3CBB
RGBrgb(138, 60, 187)
HSLhsl(277, 51%, 48%)
HSVhsv(277, 68%, 73%)
CMYKcmyk(26.2%, 67.9%, 0%, 26.7%)
CIE-LABlab(41.57, 54.44, -53.23)
CIE-LCHlch(41.57, 76.14, 315.65°)
OKLaboklab(52.02% 0.1236 -0.1505)
OKLCHoklch(52.02% 0.195 309.4)
XYZxyz(21.0650, 12.2232, 48.2537)
Luminance0.1222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CBB #6DBB3C
analogous
#4A3CBB #8A3CBB #BB3CAC
triadic
#8A3CBB #BB8A3C #3CBB8A
tetradic
#8A3CBB #BB4A3C #6DBB3C #3CACBB
square
#8A3CBB #BB4A3C #6DBB3C #3CACBB
split-complementary
#8A3CBB #ACBB3C #3CBB4A
monochromatic
#461E5E #682D8D #8A3CBB #A666CE #C195DD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3CBB#FFFFFF#000000##FFFFFF
##8A3CBB1.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)
#005FBF
Deuteranopia (green-blind)
#2663B8
Tritanopia (blue-blind)
#835777
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3cbb;
/* rgb */ color: rgb(138, 60, 187);
/* oklch */ color: oklch(52.0% 0.195 309.4);
Tailwind
colors: {
  custom: {
    50: '#b078d0',
    500: '#8a3cbb',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cbb;
$custom-light: #b078d0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cbb",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 187
  },
  "hsl": {
    "h": 276.85,
    "s": 51.417,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52018,
    "c": 0.19477,
    "h": 309.4
  },
  "luminance": 0.12223
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A3CBB

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

Preview Lab → · Contrast checker → · Palette generator →

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