#8A4BD6#8A4BD6

#8A4BD6 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.8% C 0.204 H 300.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#8A4BD6
RGBrgb(138, 75, 214)
HSLhsl(267, 63%, 57%)
HSVhsv(267, 65%, 84%)
CMYKcmyk(35.5%, 65%, 0%, 16.1%)
CIE-LABlab(46.03, 53.55, -61.66)
CIE-LCHlch(46.03, 81.67, 310.98°)
OKLaboklab(55.81% 0.1044 -0.1754)
OKLCHoklch(55.81% 0.204 300.8)
XYZxyz(25.1320, 15.2903, 65.2326)
Luminance0.1529 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BD6 #97D64B
analogous
#4B52D6 #8A4BD6 #CF4BD6
triadic
#8A4BD6 #D68A4B #4BD68A
tetradic
#8A4BD6 #D64B52 #97D64B #4BD6CF
square
#8A4BD6 #D64B52 #97D64B #4BD6CF
split-complementary
#8A4BD6 #D6CF4B #52D64B
monochromatic
#4E1F88 #6B2ABA #8A4BD6 #AA7DE1 #CBAFED

Accessibility & contrast

On white

5.17
#8A4BD6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#8A4BD6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BD6
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BD6#FFFFFF#000000##FFFFFF
##8A4BD61.005.174.065.17
#FFFFFF5.171.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CDA
Deuteranopia (green-blind)
#026CD3
Tritanopia (blue-blind)
#7A6A8A
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4bd6;
/* rgb */ color: rgb(138, 75, 214);
/* oklch */ color: oklch(55.8% 0.204 300.8);
Tailwind
colors: {
  custom: {
    50: '#b181e3',
    500: '#8a4bd6',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bd6;
$custom-light: #b181e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bd6",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 214
  },
  "hsl": {
    "h": 267.194,
    "s": 62.896,
    "l": 56.667
  },
  "oklch": {
    "l": 0.55806,
    "c": 0.20408,
    "h": 300.8
  },
  "luminance": 0.1529
}

Semantic roles & 50–950 ramp

primary
#8A4BD6
secondary
#C1DBA2
accent
#E6429C
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4BD6

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

Preview Lab → · Contrast checker → · Palette generator →

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