#8A3CD2#8A3CD2

#8A3CD2 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.7% C 0.218 H 303.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#8A3CD2
RGBrgb(138, 60, 210)
HSLhsl(271, 63%, 53%)
HSVhsv(271, 71%, 82%)
CMYKcmyk(34.3%, 71.4%, 0%, 17.6%)
CIE-LABlab(43.19, 59.68, -63.96)
CIE-LCHlch(43.19, 87.48, 313.02°)
OKLaboklab(53.69% 0.1204 -0.1821)
OKLCHoklch(53.69% 0.218 303.5)
XYZxyz(23.7272, 13.2882, 62.2751)
Luminance0.1329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CD2 #84D23C
analogous
#3F3CD2 #8A3CD2 #D23CCF
triadic
#8A3CD2 #D28A3C #3CD28A
tetradic
#8A3CD2 #D23F3C #84D23C #3CCFD2
square
#8A3CD2 #D23F3C #84D23C #3CCFD2
split-complementary
#8A3CD2 #CFD23C #3CD23F
monochromatic
#4C1C78 #6B27AA #8A3CD2 #A86EDD #C69FE9

Accessibility & contrast

On white

5.74
#8A3CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#8A3CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CD2
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CD2#FFFFFF#000000##FFFFFF
##8A3CD21.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a3cd2;
/* rgb */ color: rgb(138, 60, 210);
/* oklch */ color: oklch(53.7% 0.218 303.5);
Tailwind
colors: {
  custom: {
    50: '#b278e1',
    500: '#8a3cd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cd2;
$custom-light: #b278e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cd2",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 210
  },
  "hsl": {
    "h": 271.2,
    "s": 62.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.53689,
    "c": 0.21828,
    "h": 303.5
  },
  "luminance": 0.13288
}

Semantic roles & 50–950 ramp

primary
#8A3CD2
secondary
#B4D594
accent
#E64291
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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