#8A3CCB#8A3CCB

#8A3CCB is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.2% C 0.211 H 305.1°. Best body text is #FFFFFF at 5.85:1 contrast (WCAG AA passes).

Color values

HEX#8A3CCB
RGBrgb(138, 60, 203)
HSLhsl(273, 58%, 52%)
HSVhsv(273, 70%, 80%)
CMYKcmyk(32%, 70.4%, 0%, 20.4%)
CIE-LABlab(42.68, 58.06, -60.75)
CIE-LCHlch(42.68, 84.03, 313.71°)
OKLaboklab(53.17% 0.1215 -0.1726)
OKLCHoklch(53.17% 0.211 305.1)
XYZxyz(22.8742, 12.9469, 57.7823)
Luminance0.1295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CCB #7DCB3C
analogous
#433CCB #8A3CCB #CB3CC5
triadic
#8A3CCB #CB8A3C #3CCB8A
tetradic
#8A3CCB #CB433C #7DCB3C #3CC5CB
square
#8A3CCB #CB433C #7DCB3C #3CC5CB
split-complementary
#8A3CCB #C5CB3C #3CCB43
monochromatic
#4A1E6F #6A2A9F #8A3CCB #A76CD8 #C49DE5

Accessibility & contrast

On white

5.85
#8A3CCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A3CCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CCB
5.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CCB#FFFFFF#000000##FFFFFF
##8A3CCB1.005.853.595.85
#FFFFFF5.851.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CF
Deuteranopia (green-blind)
#0065C8
Tritanopia (blue-blind)
#7E5D7F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a3ccb;
/* rgb */ color: rgb(138, 60, 203);
/* oklch */ color: oklch(53.2% 0.211 305.1);
Tailwind
colors: {
  custom: {
    50: '#b178dc',
    500: '#8a3ccb',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ccb;
$custom-light: #b178dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ccb",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 203
  },
  "hsl": {
    "h": 272.727,
    "s": 57.895,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53166,
    "c": 0.21113,
    "h": 305.1
  },
  "luminance": 0.12947
}

Semantic roles & 50–950 ramp

primary
#8A3CCB
secondary
#AFD192
accent
#E1478D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3CCB

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

Preview Lab → · Contrast checker → · Palette generator →

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