#8A3FB5#8A3FB5

#8A3FB5 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 52.0% C 0.185 H 310.8°. Best body text is #FFFFFF at 6.07:1 contrast (WCAG AA passes).

Color values

HEX#8A3FB5
RGBrgb(138, 63, 181)
HSLhsl(278, 48%, 48%)
HSVhsv(278, 65%, 71%)
CMYKcmyk(23.8%, 65.2%, 0%, 29%)
CIE-LABlab(41.68, 51.70, -49.52)
CIE-LCHlch(41.68, 71.59, 316.24°)
OKLaboklab(51.97% 0.1206 -0.1397)
OKLCHoklch(51.97% 0.185 310.8)
XYZxyz(20.5977, 12.2949, 44.9952)
Luminance0.1229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FB5 #6AB53F
analogous
#4F3FB5 #8A3FB5 #B53FA5
triadic
#8A3FB5 #B58A3F #3FB58A
tetradic
#8A3FB5 #B54F3F #6AB53F #3FA5B5
square
#8A3FB5 #B54F3F #6AB53F #3FA5B5
split-complementary
#8A3FB5 #A5B53F #3FB54F
monochromatic
#451F5A #672F88 #8A3FB5 #A667CA #C194DA

Accessibility & contrast

On white

6.07
#8A3FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8A3FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FB5
6.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FB5#FFFFFF#000000##FFFFFF
##8A3FB51.006.073.466.07
#FFFFFF6.071.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#3164B2
Tritanopia (blue-blind)
#855774
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3fb5;
/* rgb */ color: rgb(138, 63, 181);
/* oklch */ color: oklch(52.0% 0.185 310.8);
Tailwind
colors: {
  custom: {
    50: '#b079cc',
    500: '#8a3fb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fb5;
$custom-light: #b079cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fb5",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 181
  },
  "hsl": {
    "h": 278.136,
    "s": 48.361,
    "l": 47.843
  },
  "oklch": {
    "l": 0.51973,
    "c": 0.18457,
    "h": 310.8
  },
  "luminance": 0.12294
}

Semantic roles & 50–950 ramp

primary
#8A3FB5
secondary
#A0C58A
accent
#D85081
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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