#8A3DC2#8A3DC2

#8A3DC2 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.6% C 0.201 H 307.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8A3DC2
RGBrgb(138, 61, 194)
HSLhsl(275, 52%, 50%)
HSVhsv(275, 69%, 76%)
CMYKcmyk(28.9%, 68.6%, 0%, 23.9%)
CIE-LABlab(42.21, 55.56, -56.28)
CIE-LCHlch(42.21, 79.09, 314.63°)
OKLaboklab(52.63% 0.1217 -0.1595)
OKLCHoklch(52.63% 0.201 307.3)
XYZxyz(21.8855, 12.6361, 52.3145)
Luminance0.1264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DC2 #75C23D
analogous
#483DC2 #8A3DC2 #C23DB7
triadic
#8A3DC2 #C28A3D #3DC28A
tetradic
#8A3DC2 #C2483D #75C23D #3DB7C2
square
#8A3DC2 #C2483D #75C23D #3DB7C2
split-complementary
#8A3DC2 #B7C23D #3DC248
monochromatic
#482065 #692E93 #8A3DC2 #A66CD1 #C29ADF

Accessibility & contrast

On white

5.95
#8A3DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A3DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DC2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DC2#FFFFFF#000000##FFFFFF
##8A3DC21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C6
Deuteranopia (green-blind)
#1A64BF
Tritanopia (blue-blind)
#815A7B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3dc2;
/* rgb */ color: rgb(138, 61, 194);
/* oklch */ color: oklch(52.6% 0.201 307.3);
Tailwind
colors: {
  custom: {
    50: '#b178d5',
    500: '#8a3dc2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3dc2;
$custom-light: #b178d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3dc2",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 194
  },
  "hsl": {
    "h": 274.737,
    "s": 52.157,
    "l": 50
  },
  "oklch": {
    "l": 0.52628,
    "c": 0.20067,
    "h": 307.3
  },
  "luminance": 0.12636
}

Semantic roles & 50–950 ramp

primary
#8A3DC2
secondary
#A9CB90
accent
#DC4C89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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