#51166A#51166A

#51166A is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.1% C 0.141 H 313.4°. Best body text is #FFFFFF at 12.55:1 contrast (WCAG AA passes).

Color values

HEX#51166A
RGBrgb(81, 22, 106)
HSLhsl(282, 66%, 25%)
HSVhsv(282, 79%, 42%)
CMYKcmyk(23.6%, 79.2%, 0%, 58.4%)
CIE-LABlab(21.45, 40.74, -36.27)
CIE-LCHlch(21.45, 54.55, 318.33°)
OKLaboklab(34.1% 0.0971 -0.1025)
OKLCHoklch(34.1% 0.141 313.4)
XYZxyz(6.2813, 3.3640, 13.9513)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51166A #2F6A16
analogous
#27166A #51166A #6A1659
triadic
#51166A #6A5116 #166A51
tetradic
#51166A #6A2716 #2F6A16 #16596A
square
#51166A #6A2716 #2F6A16 #16596A
split-complementary
#51166A #596A16 #166A27
monochromatic
#130519 #2A0B37 #51166A #78219D #9E2BCF

Accessibility & contrast

On white

12.55
#51166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#51166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51166A
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51166A#FFFFFF#000000##FFFFFF
##51166A1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51166a;
/* rgb */ color: rgb(81, 22, 106);
/* oklch */ color: oklch(34.1% 0.141 313.4);
Tailwind
colors: {
  custom: {
    50: '#855a95',
    500: '#51166a',
    950: '#000000',
  },
}
SCSS
$custom: #51166a;
$custom-light: #855a95;
$custom-dark: #000000;
JSON
{
  "hex": "#51166a",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 282.143,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.34101,
    "c": 0.14113,
    "h": 313.4
  },
  "luminance": 0.03364
}

Semantic roles & 50–950 ramp

primary
#51166A
secondary
#59A03B
accent
#E93F72
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51166A

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

Preview Lab → · Contrast checker → · Palette generator →

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