#8A3EB9#8A3EB9

#8A3EB9 is a mid, vivid violet. Relative luminance 0.124; OKLCH L 52.1% C 0.190 H 309.7°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8A3EB9
RGBrgb(138, 62, 185)
HSLhsl(277, 50%, 48%)
HSVhsv(277, 66%, 73%)
CMYKcmyk(25.4%, 66.5%, 0%, 27.5%)
CIE-LABlab(41.77, 53.07, -51.73)
CIE-LCHlch(41.77, 74.11, 315.73°)
OKLaboklab(52.12% 0.1215 -0.1462)
OKLCHoklch(52.12% 0.19 309.7)
XYZxyz(20.9591, 12.3517, 47.1695)
Luminance0.1235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EB9 #6DB93E
analogous
#4C3EB9 #8A3EB9 #B93EAA
triadic
#8A3EB9 #B98A3E #3EB98A
tetradic
#8A3EB9 #B94C3E #6DB93E #3EAAB9
square
#8A3EB9 #B94C3E #6DB93E #3EAAB9
split-complementary
#8A3EB9 #AAB93E #3EB94C
monochromatic
#461F5D #682F8B #8A3EB9 #A668CC #C196DC

Accessibility & contrast

On white

6.05
#8A3EB9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8A3EB9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EB9
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EB9#FFFFFF#000000##FFFFFF
##8A3EB91.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBD
Deuteranopia (green-blind)
#2B64B6
Tritanopia (blue-blind)
#835876
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a3eb9;
/* rgb */ color: rgb(138, 62, 185);
/* oklch */ color: oklch(52.1% 0.190 309.7);
Tailwind
colors: {
  custom: {
    50: '#b079cf',
    500: '#8a3eb9',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eb9;
$custom-light: #b079cf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eb9",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 185
  },
  "hsl": {
    "h": 277.073,
    "s": 49.798,
    "l": 48.431
  },
  "oklch": {
    "l": 0.52119,
    "c": 0.19008,
    "h": 309.7
  },
  "luminance": 0.12351
}

Semantic roles & 50–950 ramp

primary
#8A3EB9
secondary
#A2C78C
accent
#D94E84
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110914
muted
#807B82

Preview Lab

Preview with #8A3EB9

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

Preview Lab → · Contrast checker → · Palette generator →

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