#51197F#51197F

#51197F is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.2% C 0.159 H 304.2°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#51197F
RGBrgb(81, 25, 127)
HSLhsl(273, 67%, 30%)
HSVhsv(273, 80%, 50%)
CMYKcmyk(36.2%, 80.3%, 0%, 50.2%)
CIE-LABlab(23.59, 44.46, -46.26)
CIE-LCHlch(23.59, 64.16, 313.87°)
OKLaboklab(36.15% 0.0895 -0.1318)
OKLCHoklch(36.15% 0.159 304.2)
XYZxyz(7.5708, 3.9769, 20.4433)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51197F #477F19
analogous
#1E197F #51197F #7F197A
triadic
#51197F #7F5119 #197F51
tetradic
#51197F #7F1E19 #477F19 #197A7F
square
#51197F #7F1E19 #477F19 #197A7F
split-complementary
#51197F #7A7F19 #197F1E
monochromatic
#10051A #300F4C #51197F #7223B2 #913AD8

Accessibility & contrast

On white

11.70
#51197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#51197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51197F
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51197F#FFFFFF#000000##FFFFFF
##51197F1.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#48344C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #51197f;
/* rgb */ color: rgb(81, 25, 127);
/* oklch */ color: oklch(36.2% 0.159 304.2);
Tailwind
colors: {
  custom: {
    50: '#875da5',
    500: '#51197f',
    950: '#000000',
  },
}
SCSS
$custom: #51197f;
$custom-light: #875da5;
$custom-dark: #000000;
JSON
{
  "hex": "#51197f",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 272.941,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.36152,
    "c": 0.15935,
    "h": 304.2
  },
  "luminance": 0.03977
}

Semantic roles & 50–950 ramp

primary
#51197F
secondary
#74B341
accent
#EA3E8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51197F

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

Preview Lab → · Contrast checker → · Palette generator →

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