#8A3CDD#8A3CDD

#8A3CDD is a mid, highly saturated violet. Relative luminance 0.139; OKLCH L 54.5% C 0.229 H 301.0°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A3CDD
RGBrgb(138, 60, 221)
HSLhsl(269, 70%, 55%)
HSVhsv(269, 73%, 87%)
CMYKcmyk(37.6%, 72.9%, 0%, 13.3%)
CIE-LABlab(44.02, 62.25, -68.91)
CIE-LCHlch(44.02, 92.86, 312.09°)
OKLaboklab(54.54% 0.1183 -0.1966)
OKLCHoklch(54.54% 0.229 301)
XYZxyz(25.1450, 13.8553, 69.7422)
Luminance0.1386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CDD #8FDD3C
analogous
#3C3FDD #8A3CDD #DA3CDD
triadic
#8A3CDD #DD8A3C #3CDD8A
tetradic
#8A3CDD #DD3C3F #8FDD3C #3CDDDA
square
#8A3CDD #DD3C3F #8FDD3C #3CDDDA
split-complementary
#8A3CDD #DDDA3C #3FDD3C
monochromatic
#4E1887 #6B21BB #8A3CDD #A970E6 #C9A4EF

Accessibility & contrast

On white

5.57
#8A3CDD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8A3CDD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CDD
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CDD#FFFFFF#000000##FFFFFF
##8A3CDD1.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E2
Deuteranopia (green-blind)
#0067DA
Tritanopia (blue-blind)
#78658A
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a3cdd;
/* rgb */ color: rgb(138, 60, 221);
/* oklch */ color: oklch(54.5% 0.229 301.0);
Tailwind
colors: {
  custom: {
    50: '#b379e9',
    500: '#8a3cdd',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cdd;
$custom-light: #b379e9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cdd",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 221
  },
  "hsl": {
    "h": 269.068,
    "s": 70.306,
    "l": 55.098
  },
  "oklch": {
    "l": 0.54537,
    "c": 0.22947,
    "h": 301
  },
  "luminance": 0.13855
}

Semantic roles & 50–950 ramp

primary
#8A3CDD
secondary
#BBDC99
accent
#ED3B97
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A3CDD

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

Preview Lab → · Contrast checker → · Palette generator →

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