#8A4FB5#8A4FB5

#8A4FB5 is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.2% C 0.161 H 308.7°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#8A4FB5
RGBrgb(138, 79, 181)
HSLhsl(275, 41%, 51%)
HSVhsv(275, 56%, 71%)
CMYKcmyk(23.8%, 56.4%, 0%, 29%)
CIE-LABlab(44.71, 43.54, -44.68)
CIE-LCHlch(44.71, 62.39, 314.26°)
OKLaboklab(54.17% 0.1006 -0.1256)
OKLCHoklch(54.17% 0.161 308.7)
XYZxyz(21.6161, 14.3318, 45.3347)
Luminance0.1433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4FB5 #7AB54F
analogous
#574FB5 #8A4FB5 #B54FAD
triadic
#8A4FB5 #B58A4F #4FB58A
tetradic
#8A4FB5 #B5574F #7AB54F #4FADB5
square
#8A4FB5 #B5574F #7AB54F #4FADB5
split-complementary
#8A4FB5 #ADB54F #4FB557
monochromatic
#492961 #6A3B8C #8A4FB5 #A77AC7 #C3A5D9

Accessibility & contrast

On white

5.43
#8A4FB5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#8A4FB5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4FB5
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4FB5#FFFFFF#000000##FFFFFF
##8A4FB51.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D67B8
Deuteranopia (green-blind)
#436BB3
Tritanopia (blue-blind)
#84627A
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a4fb5;
/* rgb */ color: rgb(138, 79, 181);
/* oklch */ color: oklch(54.2% 0.161 308.7);
Tailwind
colors: {
  custom: {
    50: '#af83cc',
    500: '#8a4fb5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4fb5;
$custom-light: #af83cc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4fb5",
  "rgb": {
    "r": 138,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 274.706,
    "s": 40.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.54173,
    "c": 0.16088,
    "h": 308.7
  },
  "luminance": 0.14331
}

Semantic roles & 50–950 ramp

primary
#8A4FB5
secondary
#ACC699
accent
#D1578A
background
#FBF8FC
surface
#F6EFF9
border
#D0CAD2
text
#110B13
muted
#807C82

Preview Lab

Preview with #8A4FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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