#51196C#51196C

#51196C is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.6% C 0.140 H 312.1°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#51196C
RGBrgb(81, 25, 108)
HSLhsl(280, 62%, 26%)
HSVhsv(280, 77%, 42%)
CMYKcmyk(25%, 76.9%, 0%, 57.6%)
CIE-LABlab(22.04, 39.93, -36.60)
CIE-LCHlch(22.04, 54.17, 317.49°)
OKLaboklab(34.57% 0.0936 -0.1035)
OKLCHoklch(34.57% 0.14 312.1)
XYZxyz(6.4472, 3.5275, 14.5257)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51196C #346C19
analogous
#27196C #51196C #6C195D
triadic
#51196C #6C5119 #196C51
tetradic
#51196C #6C2719 #346C19 #195D6C
square
#51196C #6C2719 #346C19 #195D6C
split-complementary
#51196C #5D6C19 #196C27
monochromatic
#130619 #2C0D3A #51196C #76259E #9B30CF

Accessibility & contrast

On white

12.31
#51196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#51196C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51196C
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51196C#FFFFFF#000000##FFFFFF
##51196C1.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326E
Deuteranopia (green-blind)
#0E366A
Tritanopia (blue-blind)
#4E2C41
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #51196c;
/* rgb */ color: rgb(81, 25, 108);
/* oklch */ color: oklch(34.6% 0.140 312.1);
Tailwind
colors: {
  custom: {
    50: '#855c97',
    500: '#51196c',
    950: '#000000',
  },
}
SCSS
$custom: #51196c;
$custom-light: #855c97;
$custom-dark: #000000;
JSON
{
  "hex": "#51196c",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 280.482,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34572,
    "c": 0.13954,
    "h": 312.1
  },
  "luminance": 0.03527
}

Semantic roles & 50–950 ramp

primary
#51196C
secondary
#5FA13F
accent
#E54277
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51196C

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

Preview Lab → · Contrast checker → · Palette generator →

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