#51107F#51107F

#51107F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.168 H 305.1°. Best body text is #FFFFFF at 12.14:1 contrast (WCAG AA passes).

Color values

HEX#51107F
RGBrgb(81, 16, 127)
HSLhsl(275, 78%, 28%)
HSVhsv(275, 87%, 50%)
CMYKcmyk(36.2%, 87.4%, 0%, 50.2%)
CIE-LABlab(22.49, 47.69, -48.07)
CIE-LCHlch(22.49, 67.71, 314.78°)
OKLaboklab(35.38% 0.0965 -0.1371)
OKLCHoklch(35.38% 0.168 305.1)
XYZxyz(7.4085, 3.6523, 20.3892)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51107F #3E7F10
analogous
#19107F #51107F #7F1075
triadic
#51107F #7F5110 #107F51
tetradic
#51107F #7F1910 #3E7F10 #10757F
square
#51107F #7F1910 #3E7F10 #10757F
split-complementary
#51107F #757F10 #107F19
monochromatic
#11031B #2E0949 #51107F #7417B5 #9526E4

Accessibility & contrast

On white

12.14
#51107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#51107F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51107F
12.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51107F#FFFFFF#000000##FFFFFF
##51107F1.0012.141.7312.14
#FFFFFF12.141.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.141.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: #51107f;
/* rgb */ color: rgb(81, 16, 127);
/* oklch */ color: oklch(35.4% 0.168 305.1);
Tailwind
colors: {
  custom: {
    50: '#8759a5',
    500: '#51107f',
    950: '#000000',
  },
}
SCSS
$custom: #51107f;
$custom-light: #8759a5;
$custom-dark: #000000;
JSON
{
  "hex": "#51107f",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 275.135,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35381,
    "c": 0.16763,
    "h": 305.1
  },
  "luminance": 0.03652
}

Semantic roles & 50–950 ramp

primary
#51107F
secondary
#6AB536
accent
#F43483
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51107F

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

Preview Lab → · Contrast checker → · Palette generator →

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