#51117F#51117F

#51117F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.5% C 0.167 H 305.0°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#51117F
RGBrgb(81, 17, 127)
HSLhsl(275, 76%, 28%)
HSVhsv(275, 87%, 50%)
CMYKcmyk(36.2%, 86.6%, 0%, 50.2%)
CIE-LABlab(22.59, 47.38, -47.89)
CIE-LCHlch(22.59, 67.37, 314.69°)
OKLaboklab(35.45% 0.0958 -0.1366)
OKLCHoklch(35.45% 0.167 305)
XYZxyz(7.4237, 3.6826, 20.3943)
Luminance0.0368 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51117F #3F7F11
analogous
#1A117F #51117F #7F1176
triadic
#51117F #7F5111 #117F51
tetradic
#51117F #7F1A11 #3F7F11 #11767F
square
#51117F #7F1A11 #3F7F11 #11767F
split-complementary
#51117F #767F11 #117F1A
monochromatic
#11041B #2F0A49 #51117F #7318B5 #9428E2

Accessibility & contrast

On white

12.09
#51117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#51117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51117F
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51117F#FFFFFF#000000##FFFFFF
##51117F1.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#00367D
Tritanopia (blue-blind)
#48304A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #51117f;
/* rgb */ color: rgb(81, 17, 127);
/* oklch */ color: oklch(35.5% 0.167 305.0);
Tailwind
colors: {
  custom: {
    50: '#875aa5',
    500: '#51117f',
    950: '#000000',
  },
}
SCSS
$custom: #51117f;
$custom-light: #875aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#51117f",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 274.909,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35454,
    "c": 0.16683,
    "h": 305
  },
  "luminance": 0.03683
}

Semantic roles & 50–950 ramp

primary
#51117F
secondary
#6CB537
accent
#F33584
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51117F

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

Preview Lab → · Contrast checker → · Palette generator →

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