#51137D#51137D

#51137D is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.163 H 305.6°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#51137D
RGBrgb(81, 19, 125)
HSLhsl(275, 74%, 28%)
HSVhsv(275, 85%, 49%)
CMYKcmyk(35.2%, 84.8%, 0%, 51%)
CIE-LABlab(22.64, 46.25, -46.55)
CIE-LCHlch(22.64, 65.62, 314.82°)
OKLaboklab(35.43% 0.095 -0.1327)
OKLCHoklch(35.43% 0.163 305.6)
XYZxyz(7.3270, 3.6958, 19.7254)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51137D #3F7D13
analogous
#1C137D #51137D #7D1374
triadic
#51137D #7D5113 #137D51
tetradic
#51137D #7D1C13 #3F7D13 #13747D
square
#51137D #7D1C13 #3F7D13 #13747D
split-complementary
#51137D #747D13 #137D1C
monochromatic
#11041B #2F0B48 #51137D #731BB2 #942CDF

Accessibility & contrast

On white

12.07
#51137D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#51137D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51137D
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51137D#FFFFFF#000000##FFFFFF
##51137D1.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.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: #51137d;
/* rgb */ color: rgb(81, 19, 125);
/* oklch */ color: oklch(35.4% 0.163 305.6);
Tailwind
colors: {
  custom: {
    50: '#875aa3',
    500: '#51137d',
    950: '#000000',
  },
}
SCSS
$custom: #51137d;
$custom-light: #875aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#51137d",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 125
  },
  "hsl": {
    "h": 275.094,
    "s": 73.611,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35431,
    "c": 0.16316,
    "h": 305.6
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#51137D
secondary
#6CB339
accent
#F03884
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51137D

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

Preview Lab → · Contrast checker → · Palette generator →

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