#8A3DC4#8A3DC4

#8A3DC4 is a mid, highly saturated violet. Relative luminance 0.127; OKLCH L 52.8% C 0.203 H 306.8°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#8A3DC4
RGBrgb(138, 61, 196)
HSLhsl(274, 53%, 50%)
HSVhsv(274, 69%, 77%)
CMYKcmyk(29.6%, 68.9%, 0%, 23.1%)
CIE-LABlab(42.35, 56.01, -57.22)
CIE-LCHlch(42.35, 80.08, 314.39°)
OKLaboklab(52.77% 0.1215 -0.1623)
OKLCHoklch(52.77% 0.203 306.8)
XYZxyz(22.1117, 12.7265, 53.5055)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DC4 #77C43D
analogous
#463DC4 #8A3DC4 #C43DBB
triadic
#8A3DC4 #C48A3D #3DC48A
tetradic
#8A3DC4 #C4463D #77C43D #3DBBC4
square
#8A3DC4 #C4463D #77C43D #3DBBC4
split-complementary
#8A3DC4 #BBC43D #3DC446
monochromatic
#481F67 #692E96 #8A3DC4 #A66CD2 #C39BE1

Accessibility & contrast

On white

5.92
#8A3DC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8A3DC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DC4
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DC4#FFFFFF#000000##FFFFFF
##8A3DC41.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C8
Deuteranopia (green-blind)
#1564C1
Tritanopia (blue-blind)
#805B7C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3dc4;
/* rgb */ color: rgb(138, 61, 196);
/* oklch */ color: oklch(52.8% 0.203 306.8);
Tailwind
colors: {
  custom: {
    50: '#b178d7',
    500: '#8a3dc4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3dc4;
$custom-light: #b178d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3dc4",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 196
  },
  "hsl": {
    "h": 274.222,
    "s": 53.36,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52771,
    "c": 0.20273,
    "h": 306.8
  },
  "luminance": 0.12726
}

Semantic roles & 50–950 ramp

primary
#8A3DC4
secondary
#AACD90
accent
#DD4B8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3DC4

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

Preview Lab → · Contrast checker → · Palette generator →

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