#51196B#51196B

#51196B is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.139 H 312.6°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#51196B
RGBrgb(81, 25, 107)
HSLhsl(281, 62%, 26%)
HSVhsv(281, 77%, 42%)
CMYKcmyk(24.3%, 76.6%, 0%, 58%)
CIE-LABlab(21.97, 39.70, -36.07)
CIE-LCHlch(21.97, 53.64, 317.74°)
OKLaboklab(34.49% 0.0938 -0.1019)
OKLCHoklch(34.49% 0.139 312.6)
XYZxyz(6.3943, 3.5063, 14.2470)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51196B #336B19
analogous
#28196B #51196B #6B195C
triadic
#51196B #6B5119 #196B51
tetradic
#51196B #6B2819 #336B19 #195C6B
square
#51196B #6B2819 #336B19 #195C6B
split-complementary
#51196B #5C6B19 #196B28
monochromatic
#130619 #2B0D39 #51196B #77259D #9C30CE

Accessibility & contrast

On white

12.34
#51196B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51196B
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51196B#FFFFFF#000000##FFFFFF
##51196B1.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326D
Deuteranopia (green-blind)
#103669
Tritanopia (blue-blind)
#4E2B40
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #51196b;
/* rgb */ color: rgb(81, 25, 107);
/* oklch */ color: oklch(34.5% 0.139 312.6);
Tailwind
colors: {
  custom: {
    50: '#855c96',
    500: '#51196b',
    950: '#000000',
  },
}
SCSS
$custom: #51196b;
$custom-light: #855c96;
$custom-dark: #000000;
JSON
{
  "hex": "#51196b",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 107
  },
  "hsl": {
    "h": 280.976,
    "s": 62.121,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34494,
    "c": 0.1385,
    "h": 312.6
  },
  "luminance": 0.03506
}

Semantic roles & 50–950 ramp

primary
#51196B
secondary
#5EA13F
accent
#E54376
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51196B

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

Preview Lab → · Contrast checker → · Palette generator →

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