#8A4DD5#8A4DD5

#8A4DD5 is a mid, highly saturated violet. Relative luminance 0.155; OKLCH L 56.0% C 0.200 H 300.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#8A4DD5
RGBrgb(138, 77, 213)
HSLhsl(267, 62%, 57%)
HSVhsv(267, 64%, 84%)
CMYKcmyk(35.2%, 63.8%, 0%, 16.5%)
CIE-LABlab(46.33, 52.30, -60.59)
CIE-LCHlch(46.33, 80.04, 310.80°)
OKLaboklab(56% 0.1022 -0.1723)
OKLCHoklch(56% 0.2 300.7)
XYZxyz(25.1424, 15.5150, 64.6080)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DD5 #98D54D
analogous
#4D54D5 #8A4DD5 #CE4DD5
triadic
#8A4DD5 #D58A4D #4DD58A
tetradic
#8A4DD5 #D54D54 #98D54D #4DD5CE
square
#8A4DD5 #D54D54 #98D54D #4DD5CE
split-complementary
#8A4DD5 #D5CE4D #54D54D
monochromatic
#4E2088 #6B2CB9 #8A4DD5 #AB7FE1 #CBB0EC

Accessibility & contrast

On white

5.12
#8A4DD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#8A4DD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DD5
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DD5#FFFFFF#000000##FFFFFF
##8A4DD51.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006DD9
Deuteranopia (green-blind)
#116DD2
Tritanopia (blue-blind)
#7A6B8A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4dd5;
/* rgb */ color: rgb(138, 77, 213);
/* oklch */ color: oklch(56.0% 0.200 300.7);
Tailwind
colors: {
  custom: {
    50: '#b182e3',
    500: '#8a4dd5',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dd5;
$custom-light: #b182e3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dd5",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 213
  },
  "hsl": {
    "h": 266.912,
    "s": 61.818,
    "l": 56.863
  },
  "oklch": {
    "l": 0.56002,
    "c": 0.20032,
    "h": 300.7
  },
  "luminance": 0.15515
}

Semantic roles & 50–950 ramp

primary
#8A4DD5
secondary
#C2DBA3
accent
#E5439C
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B15
muted
#807C84

Preview Lab

Preview with #8A4DD5

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

Preview Lab → · Contrast checker → · Palette generator →

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