#51117D#51117D

#51117D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.3% C 0.165 H 305.8°. Best body text is #FFFFFF at 12.17:1 contrast (WCAG AA passes).

Color values

HEX#51117D
RGBrgb(81, 17, 125)
HSLhsl(276, 76%, 28%)
HSVhsv(276, 86%, 49%)
CMYKcmyk(35.2%, 86.4%, 0%, 51%)
CIE-LABlab(22.41, 46.91, -46.92)
CIE-LCHlch(22.41, 66.35, 315.00°)
OKLaboklab(35.27% 0.0964 -0.1337)
OKLCHoklch(35.27% 0.165 305.8)
XYZxyz(7.2946, 3.6310, 19.7146)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51117D #3D7D11
analogous
#1B117D #51117D #7D1173
triadic
#51117D #7D5111 #117D51
tetradic
#51117D #7D1B11 #3D7D11 #11737D
square
#51117D #7D1B11 #3D7D11 #11737D
split-complementary
#51117D #737D11 #117D1B
monochromatic
#11041B #2E0A47 #51117D #7418B3 #9527E2

Accessibility & contrast

On white

12.17
#51117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#51117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51117D
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51117D#FFFFFF#000000##FFFFFF
##51117D1.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#493049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #51117d;
/* rgb */ color: rgb(81, 17, 125);
/* oklch */ color: oklch(35.3% 0.165 305.8);
Tailwind
colors: {
  custom: {
    50: '#8759a3',
    500: '#51117d',
    950: '#000000',
  },
}
SCSS
$custom: #51117d;
$custom-light: #8759a3;
$custom-dark: #000000;
JSON
{
  "hex": "#51117d",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 275.556,
    "s": 76.056,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35273,
    "c": 0.16488,
    "h": 305.8
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#51117D
secondary
#69B337
accent
#F33582
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51117D

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

Preview Lab → · Contrast checker → · Palette generator →

#51117D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva