#8A3FB6#8A3FB6

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

Color values

HEX#8A3FB6
RGBrgb(138, 63, 182)
HSLhsl(278, 49%, 48%)
HSVhsv(278, 65%, 71%)
CMYKcmyk(24.2%, 65.4%, 0%, 28.6%)
CIE-LABlab(41.75, 51.93, -50.01)
CIE-LCHlch(41.75, 72.09, 316.08°)
OKLaboklab(52.04% 0.1206 -0.1411)
OKLCHoklch(52.04% 0.186 310.5)
XYZxyz(20.7006, 12.3361, 45.5375)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FB6 #6BB63F
analogous
#4E3FB6 #8A3FB6 #B63FA6
triadic
#8A3FB6 #B68A3F #3FB68A
tetradic
#8A3FB6 #B64E3F #6BB63F #3FA6B6
square
#8A3FB6 #B64E3F #6BB63F #3FA6B6
split-complementary
#8A3FB6 #A6B63F #3FB64E
monochromatic
#45205B #682F89 #8A3FB6 #A668CB #C195DA

Accessibility & contrast

On white

6.06
#8A3FB6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3FB6
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FB6#FFFFFF#000000##FFFFFF
##8A3FB61.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBA
Deuteranopia (green-blind)
#3064B3
Tritanopia (blue-blind)
#845775
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3fb6;
/* rgb */ color: rgb(138, 63, 182);
/* oklch */ color: oklch(52.0% 0.186 310.5);
Tailwind
colors: {
  custom: {
    50: '#b079cc',
    500: '#8a3fb6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fb6;
$custom-light: #b079cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fb6",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 182
  },
  "hsl": {
    "h": 277.815,
    "s": 48.571,
    "l": 48.039
  },
  "oklch": {
    "l": 0.5204,
    "c": 0.1856,
    "h": 310.5
  },
  "luminance": 0.12336
}

Semantic roles & 50–950 ramp

primary
#8A3FB6
secondary
#A1C68B
accent
#D85082
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3FB6

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

Preview Lab → · Contrast checker → · Palette generator →

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