#51166B#51166B

#51166B is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.2% C 0.142 H 313.0°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#51166B
RGBrgb(81, 22, 107)
HSLhsl(282, 66%, 25%)
HSVhsv(282, 79%, 42%)
CMYKcmyk(24.3%, 79.4%, 0%, 58%)
CIE-LABlab(21.52, 40.97, -36.79)
CIE-LCHlch(21.52, 55.06, 318.08°)
OKLaboklab(34.18% 0.0969 -0.104)
OKLCHoklch(34.18% 0.142 313)
XYZxyz(6.3336, 3.3849, 14.2268)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51166B #306B16
analogous
#26166B #51166B #6B165A
triadic
#51166B #6B5116 #166B51
tetradic
#51166B #6B2616 #306B16 #165A6B
square
#51166B #6B2616 #306B16 #165A6B
split-complementary
#51166B #5A6B16 #166B26
monochromatic
#130519 #2B0C38 #51166B #77209E #9E2BD1

Accessibility & contrast

On white

12.52
#51166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#51166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51166B
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51166B#FFFFFF#000000##FFFFFF
##51166B1.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#0C3569
Tritanopia (blue-blind)
#4E2A40
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51166b;
/* rgb */ color: rgb(81, 22, 107);
/* oklch */ color: oklch(34.2% 0.142 313.0);
Tailwind
colors: {
  custom: {
    50: '#855a96',
    500: '#51166b',
    950: '#000000',
  },
}
SCSS
$custom: #51166b;
$custom-light: #855a96;
$custom-dark: #000000;
JSON
{
  "hex": "#51166b",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 281.647,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3418,
    "c": 0.14214,
    "h": 313
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#51166B
secondary
#5BA13B
accent
#E93F73
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #51166B

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

Preview Lab → · Contrast checker → · Palette generator →

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