#8A4BD8#8A4BD8

#8A4BD8 is a mid, highly saturated violet. Relative luminance 0.154; OKLCH L 56.0% C 0.206 H 300.3°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#8A4BD8
RGBrgb(138, 75, 216)
HSLhsl(267, 64%, 57%)
HSVhsv(267, 65%, 85%)
CMYKcmyk(36.1%, 65.3%, 0%, 15.3%)
CIE-LABlab(46.17, 54.05, -62.57)
CIE-LCHlch(46.17, 82.68, 310.82°)
OKLaboklab(55.95% 0.1042 -0.1781)
OKLCHoklch(55.95% 0.206 300.3)
XYZxyz(25.3890, 15.3931, 66.5860)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BD8 #99D84B
analogous
#4B52D8 #8A4BD8 #D14BD8
triadic
#8A4BD8 #D88A4B #4BD88A
tetradic
#8A4BD8 #D84B52 #99D84B #4BD8D1
square
#8A4BD8 #D84B52 #99D84B #4BD8D1
split-complementary
#8A4BD8 #D8D14B #52D84B
monochromatic
#4F1E8B #6B29BD #8A4BD8 #AB7DE3 #CBB0EE

Accessibility & contrast

On white

5.15
#8A4BD8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#8A4BD8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BD8
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BD8#FFFFFF#000000##FFFFFF
##8A4BD81.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DDC
Deuteranopia (green-blind)
#006CD5
Tritanopia (blue-blind)
#796B8B
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4bd8;
/* rgb */ color: rgb(138, 75, 216);
/* oklch */ color: oklch(56.0% 0.206 300.3);
Tailwind
colors: {
  custom: {
    50: '#b281e5',
    500: '#8a4bd8',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bd8;
$custom-light: #b281e5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bd8",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 216
  },
  "hsl": {
    "h": 266.809,
    "s": 64.384,
    "l": 57.059
  },
  "oklch": {
    "l": 0.5595,
    "c": 0.2063,
    "h": 300.3
  },
  "luminance": 0.15393
}

Semantic roles & 50–950 ramp

primary
#8A4BD8
secondary
#C2DCA3
accent
#E7409D
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4BD8

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

Preview Lab → · Contrast checker → · Palette generator →

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