#8A4BD7#8A4BD7

#8A4BD7 is a mid, highly saturated violet. Relative luminance 0.153; OKLCH L 55.9% C 0.205 H 300.5°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A4BD7
RGBrgb(138, 75, 215)
HSLhsl(267, 64%, 57%)
HSVhsv(267, 65%, 84%)
CMYKcmyk(35.8%, 65.1%, 0%, 15.7%)
CIE-LABlab(46.10, 53.80, -62.12)
CIE-LCHlch(46.10, 82.18, 310.90°)
OKLaboklab(55.88% 0.1043 -0.1767)
OKLCHoklch(55.88% 0.205 300.5)
XYZxyz(25.2601, 15.3415, 65.9072)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BD7 #98D74B
analogous
#4B52D7 #8A4BD7 #D04BD7
triadic
#8A4BD7 #D78A4B #4BD78A
tetradic
#8A4BD7 #D74B52 #98D74B #4BD7D0
square
#8A4BD7 #D74B52 #98D74B #4BD7D0
split-complementary
#8A4BD7 #D7D04B #52D74B
monochromatic
#4E1E89 #6B2ABB #8A4BD7 #AB7DE2 #CBAFED

Accessibility & contrast

On white

5.16
#8A4BD7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#8A4BD7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BD7
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BD7#FFFFFF#000000##FFFFFF
##8A4BD71.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a4bd7;
/* rgb */ color: rgb(138, 75, 215);
/* oklch */ color: oklch(55.9% 0.205 300.5);
Tailwind
colors: {
  custom: {
    50: '#b181e4',
    500: '#8a4bd7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bd7;
$custom-light: #b181e4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bd7",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 215
  },
  "hsl": {
    "h": 267,
    "s": 63.636,
    "l": 56.863
  },
  "oklch": {
    "l": 0.55878,
    "c": 0.20519,
    "h": 300.5
  },
  "luminance": 0.15342
}

Semantic roles & 50–950 ramp

primary
#8A4BD7
secondary
#C2DBA2
accent
#E7419C
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4BD7

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

Preview Lab → · Contrast checker → · Palette generator →

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