#8A3DC0#8A3DC0

#8A3DC0 is a mid, vivid violet. Relative luminance 0.125; OKLCH L 52.5% C 0.199 H 307.9°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8A3DC0
RGBrgb(138, 61, 192)
HSLhsl(275, 52%, 50%)
HSVhsv(275, 68%, 75%)
CMYKcmyk(28.1%, 68.2%, 0%, 24.7%)
CIE-LABlab(42.07, 55.10, -55.34)
CIE-LCHlch(42.07, 78.10, 314.88°)
OKLaboklab(52.49% 0.122 -0.1567)
OKLCHoklch(52.49% 0.199 307.9)
XYZxyz(21.6624, 12.5468, 51.1396)
Luminance0.1255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DC0 #73C03D
analogous
#483DC0 #8A3DC0 #C03DB5
triadic
#8A3DC0 #C08A3D #3DC08A
tetradic
#8A3DC0 #C0483D #73C03D #3DB5C0
square
#8A3DC0 #C0483D #73C03D #3DB5C0
split-complementary
#8A3DC0 #B5C03D #3DC048
monochromatic
#471F63 #692E92 #8A3DC0 #A66AD0 #C299DF

Accessibility & contrast

On white

5.98
#8A3DC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8A3DC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DC0
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DC0#FFFFFF#000000##FFFFFF
##8A3DC01.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060C4
Deuteranopia (green-blind)
#1F64BD
Tritanopia (blue-blind)
#815A7A
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3dc0;
/* rgb */ color: rgb(138, 61, 192);
/* oklch */ color: oklch(52.5% 0.199 307.9);
Tailwind
colors: {
  custom: {
    50: '#b078d4',
    500: '#8a3dc0',
    950: '#000000',
  },
}
SCSS
$custom: #8a3dc0;
$custom-light: #b078d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3dc0",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 192
  },
  "hsl": {
    "h": 275.267,
    "s": 51.779,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52486,
    "c": 0.19861,
    "h": 307.9
  },
  "luminance": 0.12547
}

Semantic roles & 50–950 ramp

primary
#8A3DC0
secondary
#A7CA8E
accent
#DB4D87
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3DC0

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

Preview Lab → · Contrast checker → · Palette generator →

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