#8D51D2#8D51D2

#8D51D2 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.7% C 0.192 H 302.0°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#8D51D2
RGBrgb(141, 81, 210)
HSLhsl(268, 59%, 57%)
HSVhsv(268, 61%, 82%)
CMYKcmyk(32.9%, 61.4%, 0%, 17.6%)
CIE-LABlab(47.24, 50.15, -57.40)
CIE-LCHlch(47.24, 76.22, 311.14°)
OKLaboklab(56.67% 0.1018 -0.1628)
OKLCHoklch(56.67% 0.192 302)
XYZxyz(25.5571, 16.2007, 62.7409)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51D2 #96D251
analogous
#5156D2 #8D51D2 #CE51D2
triadic
#8D51D2 #D28D51 #51D28D
tetradic
#8D51D2 #D25156 #96D251 #51D2CE
square
#8D51D2 #D25156 #96D251 #51D2CE
split-complementary
#8D51D2 #D2CE51 #56D251
monochromatic
#512386 #6E2FB7 #8D51D2 #AD82DF #CDB2EB

Accessibility & contrast

On white

4.95
#8D51D2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#8D51D2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51D2
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51D2#FFFFFF#000000##FFFFFF
##8D51D21.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006FD6
Deuteranopia (green-blind)
#2970CF
Tritanopia (blue-blind)
#7F6C8A
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8d51d2;
/* rgb */ color: rgb(141, 81, 210);
/* oklch */ color: oklch(56.7% 0.192 302.0);
Tailwind
colors: {
  custom: {
    50: '#b385e0',
    500: '#8d51d2',
    950: '#000000',
  },
}
SCSS
$custom: #8d51d2;
$custom-light: #b385e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51d2",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 210
  },
  "hsl": {
    "h": 267.907,
    "s": 58.904,
    "l": 57.059
  },
  "oklch": {
    "l": 0.56671,
    "c": 0.19201,
    "h": 302
  },
  "luminance": 0.16201
}

Semantic roles & 50–950 ramp

primary
#8D51D2
secondary
#C1DAA5
accent
#E24699
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8D51D2

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

Preview Lab → · Contrast checker → · Palette generator →

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