#8A3DC7#8A3DC7

#8A3DC7 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.206 H 306.0°. Best body text is #FFFFFF at 5.88:1 contrast (WCAG AA passes).

Color values

HEX#8A3DC7
RGBrgb(138, 61, 199)
HSLhsl(273, 55%, 51%)
HSVhsv(273, 69%, 78%)
CMYKcmyk(30.7%, 69.3%, 0%, 22%)
CIE-LABlab(42.56, 56.70, -58.63)
CIE-LCHlch(42.56, 81.56, 314.04°)
OKLaboklab(52.99% 0.1211 -0.1664)
OKLCHoklch(52.99% 0.206 306)
XYZxyz(22.4565, 12.8645, 55.3218)
Luminance0.1286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DC7 #7AC73D
analogous
#453DC7 #8A3DC7 #C73DBF
triadic
#8A3DC7 #C78A3D #3DC78A
tetradic
#8A3DC7 #C7453D #7AC73D #3DBFC7
square
#8A3DC7 #C7453D #7AC73D #3DBFC7
split-complementary
#8A3DC7 #BFC73D #3DC745
monochromatic
#491F6B #6A2D9A #8A3DC7 #A76CD5 #C39CE2

Accessibility & contrast

On white

5.88
#8A3DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A3DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DC7
5.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DC7#FFFFFF#000000##FFFFFF
##8A3DC71.005.883.575.88
#FFFFFF5.881.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CB
Deuteranopia (green-blind)
#0B65C4
Tritanopia (blue-blind)
#7F5C7E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3dc7;
/* rgb */ color: rgb(138, 61, 199);
/* oklch */ color: oklch(53.0% 0.206 306.0);
Tailwind
colors: {
  custom: {
    50: '#b178d9',
    500: '#8a3dc7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3dc7;
$custom-light: #b178d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3dc7",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 199
  },
  "hsl": {
    "h": 273.478,
    "s": 55.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52987,
    "c": 0.20582,
    "h": 306
  },
  "luminance": 0.12864
}

Semantic roles & 50–950 ramp

primary
#8A3DC7
secondary
#ACCE91
accent
#DF498B
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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