#8A3DC5#8A3DC5

#8A3DC5 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.204 H 306.6°. Best body text is #FFFFFF at 5.91:1 contrast (WCAG AA passes).

Color values

HEX#8A3DC5
RGBrgb(138, 61, 197)
HSLhsl(274, 54%, 51%)
HSVhsv(274, 69%, 77%)
CMYKcmyk(29.9%, 69%, 0%, 22.7%)
CIE-LABlab(42.42, 56.24, -57.69)
CIE-LCHlch(42.42, 80.57, 314.27°)
OKLaboklab(52.84% 0.1214 -0.1637)
OKLCHoklch(52.84% 0.204 306.6)
XYZxyz(22.2259, 12.7722, 54.1069)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DC5 #78C53D
analogous
#463DC5 #8A3DC5 #C53DBC
triadic
#8A3DC5 #C58A3D #3DC58A
tetradic
#8A3DC5 #C5463D #78C53D #3DBCC5
square
#8A3DC5 #C5463D #78C53D #3DBCC5
split-complementary
#8A3DC5 #BCC53D #3DC546
monochromatic
#491F68 #692D98 #8A3DC5 #A66CD3 #C39BE1

Accessibility & contrast

On white

5.91
#8A3DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3DC5
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DC5#FFFFFF#000000##FFFFFF
##8A3DC51.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#1265C2
Tritanopia (blue-blind)
#805C7C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3dc5;
/* rgb */ color: rgb(138, 61, 197);
/* oklch */ color: oklch(52.8% 0.204 306.6);
Tailwind
colors: {
  custom: {
    50: '#b178d7',
    500: '#8a3dc5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3dc5;
$custom-light: #b178d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3dc5",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 197
  },
  "hsl": {
    "h": 273.971,
    "s": 53.968,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52842,
    "c": 0.20376,
    "h": 306.6
  },
  "luminance": 0.12772
}

Semantic roles & 50–950 ramp

primary
#8A3DC5
secondary
#ABCD91
accent
#DD4A8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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