#8A3EB2#8A3EB2

#8A3EB2 is a mid, vivid violet. Relative luminance 0.121; OKLCH L 51.6% C 0.183 H 311.8°. Best body text is #FFFFFF at 6.15:1 contrast (WCAG AA passes).

Color values

HEX#8A3EB2
RGBrgb(138, 62, 178)
HSLhsl(279, 48%, 47%)
HSVhsv(279, 65%, 70%)
CMYKcmyk(22.5%, 65.2%, 0%, 30.2%)
CIE-LABlab(41.32, 51.52, -48.34)
CIE-LCHlch(41.32, 70.64, 316.82°)
OKLaboklab(51.65% 0.122 -0.1362)
OKLCHoklch(51.65% 0.183 311.8)
XYZxyz(20.2383, 12.0634, 43.3732)
Luminance0.1206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EB2 #66B23E
analogous
#503EB2 #8A3EB2 #B23EA0
triadic
#8A3EB2 #B28A3E #3EB28A
tetradic
#8A3EB2 #B2503E #66B23E #3EA0B2
square
#8A3EB2 #B2503E #66B23E #3EA0B2
split-complementary
#8A3EB2 #A0B23E #3EB250
monochromatic
#441E57 #672E85 #8A3EB2 #A664C9 #C092D9

Accessibility & contrast

On white

6.15
#8A3EB2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8A3EB2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EB2
6.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EB2#FFFFFF#000000##FFFFFF
##8A3EB21.006.153.416.15
#FFFFFF6.151.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB6
Deuteranopia (green-blind)
#3363AF
Tritanopia (blue-blind)
#855572
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a3eb2;
/* rgb */ color: rgb(138, 62, 178);
/* oklch */ color: oklch(51.6% 0.183 311.8);
Tailwind
colors: {
  custom: {
    50: '#b078ca',
    500: '#8a3eb2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eb2;
$custom-light: #b078ca;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eb2",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 178
  },
  "hsl": {
    "h": 279.31,
    "s": 48.333,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51649,
    "c": 0.18284,
    "h": 311.8
  },
  "luminance": 0.12063
}

Semantic roles & 50–950 ramp

primary
#8A3EB2
secondary
#9DC488
accent
#D8507F
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3EB2

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

Preview Lab → · Contrast checker → · Palette generator →

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