#51197D#51197D

#51197D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.0% C 0.157 H 304.9°. Best body text is #FFFFFF at 11.76:1 contrast (WCAG AA passes).

Color values

HEX#51197D
RGBrgb(81, 25, 125)
HSLhsl(274, 67%, 29%)
HSVhsv(274, 80%, 49%)
CMYKcmyk(35.2%, 80%, 0%, 51%)
CIE-LABlab(23.42, 43.98, -45.27)
CIE-LCHlch(23.42, 63.11, 314.17°)
OKLaboklab(35.98% 0.09 -0.1289)
OKLCHoklch(35.98% 0.157 304.9)
XYZxyz(7.4418, 3.9253, 19.7637)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51197D #457D19
analogous
#1F197D #51197D #7D1977
triadic
#51197D #7D5119 #197D51
tetradic
#51197D #7D1F19 #457D19 #19777D
square
#51197D #7D1F19 #457D19 #19777D
split-complementary
#51197D #777D19 #197D1F
monochromatic
#11051A #300F4A #51197D #7223B0 #9239D7

Accessibility & contrast

On white

11.76
#51197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#51197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51197D
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51197D#FFFFFF#000000##FFFFFF
##51197D1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003680
Deuteranopia (green-blind)
#00387B
Tritanopia (blue-blind)
#49334B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #51197d;
/* rgb */ color: rgb(81, 25, 125);
/* oklch */ color: oklch(36.0% 0.157 304.9);
Tailwind
colors: {
  custom: {
    50: '#875da3',
    500: '#51197d',
    950: '#000000',
  },
}
SCSS
$custom: #51197d;
$custom-light: #875da3;
$custom-dark: #000000;
JSON
{
  "hex": "#51197d",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 273.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.35978,
    "c": 0.15726,
    "h": 304.9
  },
  "luminance": 0.03925
}

Semantic roles & 50–950 ramp

primary
#51197D
secondary
#72B140
accent
#EA3E8A
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51197D

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

Preview Lab → · Contrast checker → · Palette generator →

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