#51107E#51107E

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

Color values

HEX#51107E
RGBrgb(81, 16, 126)
HSLhsl(275, 77%, 28%)
HSVhsv(275, 87%, 49%)
CMYKcmyk(35.7%, 87.3%, 0%, 50.6%)
CIE-LABlab(22.40, 47.46, -47.58)
CIE-LCHlch(22.40, 67.20, 314.93°)
OKLaboklab(35.29% 0.0968 -0.1357)
OKLCHoklch(35.29% 0.167 305.5)
XYZxyz(7.3437, 3.6263, 20.0477)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51107E #3D7E10
analogous
#1A107E #51107E #7E1074
triadic
#51107E #7E5110 #107E51
tetradic
#51107E #7E1A10 #3D7E10 #10747E
square
#51107E #7E1A10 #3D7E10 #10747E
split-complementary
#51107E #747E10 #107E1A
monochromatic
#11031B #2E0948 #51107E #7417B4 #9525E3

Accessibility & contrast

On white

12.17
#51107E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51107E
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51107E#FFFFFF#000000##FFFFFF
##51107E1.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)
#003481
Deuteranopia (green-blind)
#00367C
Tritanopia (blue-blind)
#483049
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #51107e;
/* rgb */ color: rgb(81, 16, 126);
/* oklch */ color: oklch(35.3% 0.167 305.5);
Tailwind
colors: {
  custom: {
    50: '#8759a4',
    500: '#51107e',
    950: '#000000',
  },
}
SCSS
$custom: #51107e;
$custom-light: #8759a4;
$custom-dark: #000000;
JSON
{
  "hex": "#51107e",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 126
  },
  "hsl": {
    "h": 275.455,
    "s": 77.465,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3529,
    "c": 0.16666,
    "h": 305.5
  },
  "luminance": 0.03626
}

Semantic roles & 50–950 ramp

primary
#51107E
secondary
#69B436
accent
#F43482
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51107E

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

Preview Lab → · Contrast checker → · Palette generator →

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