#8A4DD2#8A4DD2

#8A4DD2 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.8% C 0.197 H 301.4°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#8A4DD2
RGBrgb(138, 77, 210)
HSLhsl(268, 60%, 56%)
HSVhsv(268, 63%, 82%)
CMYKcmyk(34.3%, 63.3%, 0%, 17.6%)
CIE-LABlab(46.13, 51.56, -59.20)
CIE-LCHlch(46.13, 78.51, 311.05°)
OKLaboklab(55.79% 0.1025 -0.1682)
OKLCHoklch(55.79% 0.197 301.4)
XYZxyz(24.7652, 15.3641, 62.6211)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DD2 #95D24D
analogous
#4D53D2 #8A4DD2 #CD4DD2
triadic
#8A4DD2 #D28A4D #4DD28A
tetradic
#8A4DD2 #D24D53 #95D24D #4DD2CD
square
#8A4DD2 #D24D53 #95D24D #4DD2CD
split-complementary
#8A4DD2 #D2CD4D #53D24D
monochromatic
#4E2183 #6B2EB4 #8A4DD2 #AA7EDE #CAAFEB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A4DD2#FFFFFF#000000##FFFFFF
##8A4DD21.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)
#006CD6
Deuteranopia (green-blind)
#1A6DCF
Tritanopia (blue-blind)
#7B6A89
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #8a4dd2;
/* rgb */ color: rgb(138, 77, 210);
/* oklch */ color: oklch(55.8% 0.197 301.4);
Tailwind
colors: {
  custom: {
    50: '#b182e1',
    500: '#8a4dd2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dd2;
$custom-light: #b182e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dd2",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 210
  },
  "hsl": {
    "h": 267.519,
    "s": 59.641,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55791,
    "c": 0.19694,
    "h": 301.4
  },
  "luminance": 0.15364
}

Semantic roles & 50–950 ramp

primary
#8A4DD2
secondary
#C0D9A2
accent
#E3459A
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4DD2

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

Preview Lab → · Contrast checker → · Palette generator →

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