#8A3FB4#8A3FB4

#8A3FB4 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.9% C 0.184 H 311.1°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8A3FB4
RGBrgb(138, 63, 180)
HSLhsl(278, 48%, 48%)
HSVhsv(278, 65%, 71%)
CMYKcmyk(23.3%, 65%, 0%, 29.4%)
CIE-LABlab(41.62, 51.48, -49.03)
CIE-LCHlch(41.62, 71.10, 316.39°)
OKLaboklab(51.91% 0.1207 -0.1383)
OKLCHoklch(51.91% 0.184 311.1)
XYZxyz(20.4954, 12.2540, 44.4568)
Luminance0.1225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FB4 #69B43F
analogous
#503FB4 #8A3FB4 #B43FA3
triadic
#8A3FB4 #B48A3F #3FB48A
tetradic
#8A3FB4 #B4503F #69B43F #3FA3B4
square
#8A3FB4 #B4503F #69B43F #3FA3B4
split-complementary
#8A3FB4 #A3B43F #3FB450
monochromatic
#441F59 #672F87 #8A3FB4 #A667CA #C194DA

Accessibility & contrast

On white

6.09
#8A3FB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A3FB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FB4
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FB4#FFFFFF#000000##FFFFFF
##8A3FB41.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB8
Deuteranopia (green-blind)
#3264B1
Tritanopia (blue-blind)
#855674
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a3fb4;
/* rgb */ color: rgb(138, 63, 180);
/* oklch */ color: oklch(51.9% 0.184 311.1);
Tailwind
colors: {
  custom: {
    50: '#b079cb',
    500: '#8a3fb4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fb4;
$custom-light: #b079cb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fb4",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 180
  },
  "hsl": {
    "h": 278.462,
    "s": 48.148,
    "l": 47.647
  },
  "oklch": {
    "l": 0.51906,
    "c": 0.18353,
    "h": 311.1
  },
  "luminance": 0.12254
}

Semantic roles & 50–950 ramp

primary
#8A3FB4
secondary
#9FC58A
accent
#D85081
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110913
muted
#807B82

Preview Lab

Preview with #8A3FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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