#51187B#51187B

#51187B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.156 H 305.8°. Best body text is #FFFFFF at 11.89:1 contrast (WCAG AA passes).

Color values

HEX#51187B
RGBrgb(81, 24, 123)
HSLhsl(275, 67%, 29%)
HSVhsv(275, 80%, 48%)
CMYKcmyk(34.1%, 80.5%, 0%, 51.8%)
CIE-LABlab(23.11, 43.90, -44.51)
CIE-LCHlch(23.11, 62.52, 314.61°)
OKLaboklab(35.71% 0.0914 -0.1267)
OKLCHoklch(35.71% 0.156 305.8)
XYZxyz(7.2943, 3.8327, 19.0906)
Luminance0.0383 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51187B #427B18
analogous
#1F187B #51187B #7B1874
triadic
#51187B #7B5118 #187B51
tetradic
#51187B #7B1F18 #427B18 #18747B
square
#51187B #7B1F18 #427B18 #18747B
split-complementary
#51187B #747B18 #187B1F
monochromatic
#11051A #2F0E48 #51187B #7322AE #9336D8

Accessibility & contrast

On white

11.89
#51187B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#51187B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51187B
11.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51187B#FFFFFF#000000##FFFFFF
##51187B1.0011.891.7711.89
#FFFFFF11.891.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#493149
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #51187b;
/* rgb */ color: rgb(81, 24, 123);
/* oklch */ color: oklch(35.7% 0.156 305.8);
Tailwind
colors: {
  custom: {
    50: '#875ca2',
    500: '#51187b',
    950: '#000000',
  },
}
SCSS
$custom: #51187b;
$custom-light: #875ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#51187b",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 123
  },
  "hsl": {
    "h": 274.545,
    "s": 67.347,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35705,
    "c": 0.15624,
    "h": 305.8
  },
  "luminance": 0.03833
}

Semantic roles & 50–950 ramp

primary
#51187B
secondary
#6FB03F
accent
#EA3E87
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51187B

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

Preview Lab → · Contrast checker → · Palette generator →

#51187B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva