#51107D#51107D

#51107D is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.166 H 305.9°. Best body text is #FFFFFF at 12.21:1 contrast (WCAG AA passes).

Color values

HEX#51107D
RGBrgb(81, 16, 125)
HSLhsl(276, 77%, 28%)
HSVhsv(276, 87%, 49%)
CMYKcmyk(35.2%, 87.2%, 0%, 51%)
CIE-LABlab(22.30, 47.23, -47.09)
CIE-LCHlch(22.30, 66.70, 315.08°)
OKLaboklab(35.2% 0.0971 -0.1342)
OKLCHoklch(35.2% 0.166 305.9)
XYZxyz(7.2795, 3.6006, 19.7096)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51107D #3C7D10
analogous
#1B107D #51107D #7D1072
triadic
#51107D #7D5110 #107D51
tetradic
#51107D #7D1B10 #3C7D10 #10727D
square
#51107D #7D1B10 #3C7D10 #10727D
split-complementary
#51107D #727D10 #107D1B
monochromatic
#12031B #2E0947 #51107D #7417B3 #9624E3

Accessibility & contrast

On white

12.21
#51107D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#51107D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51107D
12.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51107D#FFFFFF#000000##FFFFFF
##51107D1.0012.211.7212.21
#FFFFFF12.211.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#492F49
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #51107d;
/* rgb */ color: rgb(81, 16, 125);
/* oklch */ color: oklch(35.2% 0.166 305.9);
Tailwind
colors: {
  custom: {
    50: '#8759a4',
    500: '#51107d',
    950: '#000000',
  },
}
SCSS
$custom: #51107d;
$custom-light: #8759a4;
$custom-dark: #000000;
JSON
{
  "hex": "#51107d",
  "rgb": {
    "r": 81,
    "g": 16,
    "b": 125
  },
  "hsl": {
    "h": 275.78,
    "s": 77.305,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35199,
    "c": 0.16569,
    "h": 305.9
  },
  "luminance": 0.03601
}

Semantic roles & 50–950 ramp

primary
#51107D
secondary
#68B335
accent
#F43481
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51107D

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

Preview Lab → · Contrast checker → · Palette generator →

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