#51156B#51156B

#51156B is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.1% C 0.143 H 313.1°. Best body text is #FFFFFF at 12.58:1 contrast (WCAG AA passes).

Color values

HEX#51156B
RGBrgb(81, 21, 107)
HSLhsl(282, 67%, 25%)
HSVhsv(282, 80%, 42%)
CMYKcmyk(24.3%, 80.4%, 0%, 58%)
CIE-LABlab(21.38, 41.37, -37.02)
CIE-LCHlch(21.38, 55.51, 318.18°)
OKLaboklab(34.08% 0.0979 -0.1047)
OKLCHoklch(34.08% 0.143 313.1)
XYZxyz(6.3149, 3.3474, 14.2205)
Luminance0.0335 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51156B #2F6B15
analogous
#26156B #51156B #6B155A
triadic
#51156B #6B5115 #156B51
tetradic
#51156B #6B2615 #2F6B15 #155A6B
square
#51156B #6B2615 #2F6B15 #155A6B
split-complementary
#51156B #5A6B15 #156B26
monochromatic
#13051A #2A0B38 #51156B #781F9E #9E29D1

Accessibility & contrast

On white

12.58
#51156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#51156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51156B
12.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51156B#FFFFFF#000000##FFFFFF
##51156B1.0012.581.6712.58
#FFFFFF12.581.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#0A3569
Tritanopia (blue-blind)
#4E293F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #51156b;
/* rgb */ color: rgb(81, 21, 107);
/* oklch */ color: oklch(34.1% 0.143 313.1);
Tailwind
colors: {
  custom: {
    50: '#855a96',
    500: '#51156b',
    950: '#000000',
  },
}
SCSS
$custom: #51156b;
$custom-light: #855a96;
$custom-dark: #000000;
JSON
{
  "hex": "#51156b",
  "rgb": {
    "r": 81,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 281.86,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34082,
    "c": 0.14329,
    "h": 313.1
  },
  "luminance": 0.03347
}

Semantic roles & 50–950 ramp

primary
#51156B
secondary
#59A23A
accent
#EA3E72
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51156B

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

Preview Lab → · Contrast checker → · Palette generator →

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