#8A3CC6#8A3CC6

#8A3CC6 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.206 H 306.4°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8A3CC6
RGBrgb(138, 60, 198)
HSLhsl(274, 55%, 51%)
HSVhsv(274, 70%, 78%)
CMYKcmyk(30.3%, 69.7%, 0%, 22.4%)
CIE-LABlab(42.33, 56.92, -58.42)
CIE-LCHlch(42.33, 81.57, 314.25°)
OKLaboklab(52.8% 0.1223 -0.1658)
OKLCHoklch(52.8% 0.206 306.4)
XYZxyz(22.2879, 12.7124, 54.6947)
Luminance0.1271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CC6 #78C63C
analogous
#453CC6 #8A3CC6 #C63CBD
triadic
#8A3CC6 #C68A3C #3CC68A
tetradic
#8A3CC6 #C6453C #78C63C #3CBDC6
square
#8A3CC6 #C6453C #78C63C #3CBDC6
split-complementary
#8A3CC6 #BDC63C #3CC645
monochromatic
#491F69 #692D98 #8A3CC6 #A66BD4 #C39BE2

Accessibility & contrast

On white

5.93
#8A3CC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8A3CC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CC6
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CC6#FFFFFF#000000##FFFFFF
##8A3CC61.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061CA
Deuteranopia (green-blind)
#0B64C3
Tritanopia (blue-blind)
#805B7D
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3cc6;
/* rgb */ color: rgb(138, 60, 198);
/* oklch */ color: oklch(52.8% 0.206 306.4);
Tailwind
colors: {
  custom: {
    50: '#b178d8',
    500: '#8a3cc6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cc6;
$custom-light: #b178d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cc6",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 198
  },
  "hsl": {
    "h": 273.913,
    "s": 54.762,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52799,
    "c": 0.20602,
    "h": 306.4
  },
  "luminance": 0.12712
}

Semantic roles & 50–950 ramp

primary
#8A3CC6
secondary
#ABCE90
accent
#DE4A8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3CC6

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

Preview Lab → · Contrast checker → · Palette generator →

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