#51197A#51197A

#51197A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.154 H 306.1°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#51197A
RGBrgb(81, 25, 122)
HSLhsl(275, 66%, 29%)
HSVhsv(275, 80%, 48%)
CMYKcmyk(33.6%, 79.5%, 0%, 52.2%)
CIE-LABlab(23.17, 43.25, -43.78)
CIE-LCHlch(23.17, 61.54, 314.65°)
OKLaboklab(35.72% 0.0908 -0.1246)
OKLCHoklch(35.72% 0.154 306.1)
XYZxyz(7.2530, 3.8498, 18.7696)
Luminance0.0385 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51197A #427A19
analogous
#21197A #51197A #7A1973
triadic
#51197A #7A5119 #197A51
tetradic
#51197A #7A2119 #427A19 #19737A
square
#51197A #7A2119 #427A19 #19737A
split-complementary
#51197A #737A19 #197A21
monochromatic
#110519 #2F0F47 #51197A #7323AD #9337D6

Accessibility & contrast

On white

11.86
#51197A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#51197A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51197A
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51197A#FFFFFF#000000##FFFFFF
##51197A1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#4A3249
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #51197a;
/* rgb */ color: rgb(81, 25, 122);
/* oklch */ color: oklch(35.7% 0.154 306.1);
Tailwind
colors: {
  custom: {
    50: '#865da1',
    500: '#51197a',
    950: '#000000',
  },
}
SCSS
$custom: #51197a;
$custom-light: #865da1;
$custom-dark: #000000;
JSON
{
  "hex": "#51197a",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 122
  },
  "hsl": {
    "h": 274.639,
    "s": 65.986,
    "l": 28.824
  },
  "oklch": {
    "l": 0.3572,
    "c": 0.15412,
    "h": 306.1
  },
  "luminance": 0.0385
}

Semantic roles & 50–950 ramp

primary
#51197A
secondary
#6FAF40
accent
#E93F87
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51197A

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

Preview Lab → · Contrast checker → · Palette generator →

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