#8A4BD5#8A4BD5

#8A4BD5 is a mid, highly saturated violet. Relative luminance 0.152; OKLCH L 55.7% C 0.203 H 301.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#8A4BD5
RGBrgb(138, 75, 213)
HSLhsl(267, 62%, 56%)
HSVhsv(267, 65%, 84%)
CMYKcmyk(35.2%, 64.8%, 0%, 16.5%)
CIE-LABlab(45.96, 53.31, -61.19)
CIE-LCHlch(45.96, 81.16, 311.06°)
OKLaboklab(55.73% 0.1045 -0.174)
OKLCHoklch(55.73% 0.203 301)
XYZxyz(25.0047, 15.2394, 64.5620)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4BD5 #96D54B
analogous
#4B51D5 #8A4BD5 #CF4BD5
triadic
#8A4BD5 #D58A4B #4BD58A
tetradic
#8A4BD5 #D54B51 #96D54B #4BD5CF
square
#8A4BD5 #D54B51 #96D54B #4BD5CF
split-complementary
#8A4BD5 #D5CF4B #51D54B
monochromatic
#4E1F86 #6B2BB8 #8A4BD5 #AA7DE1 #CBAEEC

Accessibility & contrast

On white

5.19
#8A4BD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#8A4BD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4BD5
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4BD5#FFFFFF#000000##FFFFFF
##8A4BD51.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CD9
Deuteranopia (green-blind)
#076CD2
Tritanopia (blue-blind)
#7A6A89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4bd5;
/* rgb */ color: rgb(138, 75, 213);
/* oklch */ color: oklch(55.7% 0.203 301.0);
Tailwind
colors: {
  custom: {
    50: '#b181e3',
    500: '#8a4bd5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4bd5;
$custom-light: #b181e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4bd5",
  "rgb": {
    "r": 138,
    "g": 75,
    "b": 213
  },
  "hsl": {
    "h": 267.391,
    "s": 62.162,
    "l": 56.471
  },
  "oklch": {
    "l": 0.55734,
    "c": 0.20297,
    "h": 301
  },
  "luminance": 0.1524
}

Semantic roles & 50–950 ramp

primary
#8A4BD5
secondary
#C0DAA2
accent
#E5439B
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8A4BD5

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

Preview Lab → · Contrast checker → · Palette generator →

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