#8A3DD2#8A3DD2

#8A3DD2 is a mid, highly saturated violet. Relative luminance 0.134; OKLCH L 53.8% C 0.217 H 303.4°. Best body text is #FFFFFF at 5.71:1 contrast (WCAG AA passes).

Color values

HEX#8A3DD2
RGBrgb(138, 61, 210)
HSLhsl(271, 62%, 53%)
HSVhsv(271, 71%, 82%)
CMYKcmyk(34.3%, 71%, 0%, 17.6%)
CIE-LABlab(43.35, 59.24, -63.70)
CIE-LCHlch(43.35, 86.99, 312.92°)
OKLaboklab(53.8% 0.1194 -0.1813)
OKLCHoklch(53.8% 0.217 303.4)
XYZxyz(23.7801, 13.3939, 62.2928)
Luminance0.1339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DD2 #85D23D
analogous
#3F3DD2 #8A3DD2 #D23DCF
triadic
#8A3DD2 #D28A3D #3DD28A
tetradic
#8A3DD2 #D23F3D #85D23D #3DCFD2
square
#8A3DD2 #D23F3D #85D23D #3DCFD2
split-complementary
#8A3DD2 #CFD23D #3DD23F
monochromatic
#4C1C79 #6B28AA #8A3DD2 #A86FDE #C6A0E9

Accessibility & contrast

On white

5.71
#8A3DD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A3DD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DD2
5.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DD2#FFFFFF#000000##FFFFFF
##8A3DD21.005.713.685.71
#FFFFFF5.711.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D6
Deuteranopia (green-blind)
#0066CF
Tritanopia (blue-blind)
#7C6184
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a3dd2;
/* rgb */ color: rgb(138, 61, 210);
/* oklch */ color: oklch(53.8% 0.217 303.4);
Tailwind
colors: {
  custom: {
    50: '#b279e1',
    500: '#8a3dd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3dd2;
$custom-light: #b279e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3dd2",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 210
  },
  "hsl": {
    "h": 271.007,
    "s": 62.343,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53801,
    "c": 0.21712,
    "h": 303.4
  },
  "luminance": 0.13394
}

Semantic roles & 50–950 ramp

primary
#8A3DD2
secondary
#B4D695
accent
#E54291
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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