#51137F#51137F

#51137F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.6% C 0.165 H 304.8°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#51137F
RGBrgb(81, 19, 127)
HSLhsl(274, 74%, 29%)
HSVhsv(274, 85%, 50%)
CMYKcmyk(36.2%, 85%, 0%, 50.2%)
CIE-LABlab(22.82, 46.72, -47.52)
CIE-LCHlch(22.82, 66.64, 314.51°)
OKLaboklab(35.61% 0.0944 -0.1355)
OKLCHoklch(35.61% 0.165 304.8)
XYZxyz(7.4561, 3.7474, 20.4051)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51137F #417F13
analogous
#1B137F #51137F #7F1377
triadic
#51137F #7F5113 #137F51
tetradic
#51137F #7F1B13 #417F13 #13777F
square
#51137F #7F1B13 #417F13 #13777F
split-complementary
#51137F #777F13 #137F1B
monochromatic
#11041B #2F0B4A #51137F #731BB4 #932DE0

Accessibility & contrast

On white

12.00
#51137F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#51137F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51137F
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51137F#FFFFFF#000000##FFFFFF
##51137F1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51137f;
/* rgb */ color: rgb(81, 19, 127);
/* oklch */ color: oklch(35.6% 0.165 304.8);
Tailwind
colors: {
  custom: {
    50: '#875aa5',
    500: '#51137f',
    950: '#000000',
  },
}
SCSS
$custom: #51137f;
$custom-light: #875aa5;
$custom-dark: #000000;
JSON
{
  "hex": "#51137f",
  "rgb": {
    "r": 81,
    "g": 19,
    "b": 127
  },
  "hsl": {
    "h": 274.444,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3561,
    "c": 0.16514,
    "h": 304.8
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#51137F
secondary
#6EB439
accent
#F13786
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51137F

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

Preview Lab → · Contrast checker → · Palette generator →

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