#8D51D4#8D51D4

#8D51D4 is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.8% C 0.194 H 301.6°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#8D51D4
RGBrgb(141, 81, 212)
HSLhsl(267, 60%, 57%)
HSVhsv(267, 62%, 83%)
CMYKcmyk(33.5%, 61.8%, 0%, 16.9%)
CIE-LABlab(47.37, 50.64, -58.33)
CIE-LCHlch(47.37, 77.25, 310.96°)
OKLaboklab(56.81% 0.1017 -0.1655)
OKLCHoklch(56.81% 0.194 301.6)
XYZxyz(25.8078, 16.3009, 64.0613)
Luminance0.1630 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8D51D4 #98D451
analogous
#5156D4 #8D51D4 #CF51D4
triadic
#8D51D4 #D48D51 #51D48D
tetradic
#8D51D4 #D45156 #98D451 #51D4CF
square
#8D51D4 #D45156 #98D451 #51D4CF
split-complementary
#8D51D4 #D4CF51 #56D451
monochromatic
#512289 #6E2EBA #8D51D4 #AD82E0 #CDB3EC

Accessibility & contrast

On white

4.93
#8D51D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#8D51D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8D51D4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8D51D4#FFFFFF#000000##FFFFFF
##8D51D41.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0070D8
Deuteranopia (green-blind)
#2570D1
Tritanopia (blue-blind)
#7E6D8B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #8d51d4;
/* rgb */ color: rgb(141, 81, 212);
/* oklch */ color: oklch(56.8% 0.194 301.6);
Tailwind
colors: {
  custom: {
    50: '#b385e2',
    500: '#8d51d4',
    950: '#000000',
  },
}
SCSS
$custom: #8d51d4;
$custom-light: #b385e2;
$custom-dark: #000000;
JSON
{
  "hex": "#8d51d4",
  "rgb": {
    "r": 141,
    "g": 81,
    "b": 212
  },
  "hsl": {
    "h": 267.481,
    "s": 60.369,
    "l": 57.451
  },
  "oklch": {
    "l": 0.56807,
    "c": 0.19429,
    "h": 301.6
  },
  "luminance": 0.16301
}

Semantic roles & 50–950 ramp

primary
#8D51D4
secondary
#C3DBA6
accent
#E4449B
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8D51D4

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

Preview Lab → · Contrast checker → · Palette generator →

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