#51196A#51196A

#51196A is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.4% C 0.137 H 313.1°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#51196A
RGBrgb(81, 25, 106)
HSLhsl(281, 62%, 26%)
HSVhsv(281, 76%, 42%)
CMYKcmyk(23.6%, 76.4%, 0%, 58.4%)
CIE-LABlab(21.89, 39.47, -35.55)
CIE-LCHlch(21.89, 53.12, 318.00°)
OKLaboklab(34.42% 0.0939 -0.1004)
OKLCHoklch(34.42% 0.137 313.1)
XYZxyz(6.3420, 3.4854, 13.9715)
Luminance0.0348 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51196A #326A19
analogous
#28196A #51196A #6A195A
triadic
#51196A #6A5119 #196A51
tetradic
#51196A #6A2819 #326A19 #195A6A
square
#51196A #6A2819 #326A19 #195A6A
split-complementary
#51196A #5A6A19 #196A28
monochromatic
#130619 #2B0D38 #51196A #77259C #9D30CD

Accessibility & contrast

On white

12.37
#51196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#51196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51196A
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51196A#FFFFFF#000000##FFFFFF
##51196A1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326C
Deuteranopia (green-blind)
#113668
Tritanopia (blue-blind)
#4E2B40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51196a;
/* rgb */ color: rgb(81, 25, 106);
/* oklch */ color: oklch(34.4% 0.137 313.1);
Tailwind
colors: {
  custom: {
    50: '#855c95',
    500: '#51196a',
    950: '#000000',
  },
}
SCSS
$custom: #51196a;
$custom-light: #855c95;
$custom-dark: #000000;
JSON
{
  "hex": "#51196a",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 281.481,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34416,
    "c": 0.13746,
    "h": 313.1
  },
  "luminance": 0.03485
}

Semantic roles & 50–950 ramp

primary
#51196A
secondary
#5DA03F
accent
#E54375
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51196A

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

Preview Lab → · Contrast checker → · Palette generator →

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