#51166E#51166E

#51166E is a dark, vivid purple. Relative luminance 0.034; OKLCH L 34.4% C 0.145 H 311.6°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#51166E
RGBrgb(81, 22, 110)
HSLhsl(280, 67%, 26%)
HSVhsv(280, 80%, 43%)
CMYKcmyk(26.4%, 80%, 0%, 56.9%)
CIE-LABlab(21.76, 41.65, -38.36)
CIE-LCHlch(21.76, 56.62, 317.36°)
OKLaboklab(34.42% 0.0963 -0.1086)
OKLCHoklch(34.42% 0.145 311.6)
XYZxyz(6.4942, 3.4491, 15.0725)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51166E #336E16
analogous
#25166E #51166E #6E165F
triadic
#51166E #6E5116 #166E51
tetradic
#51166E #6E2516 #336E16 #165F6E
square
#51166E #6E2516 #336E16 #165F6E
split-complementary
#51166E #5F6E16 #166E25
monochromatic
#13051A #2B0C3B #51166E #7720A1 #9C2AD4

Accessibility & contrast

On white

12.43
#51166E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#51166E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51166E
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51166E#FFFFFF#000000##FFFFFF
##51166E1.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#05356C
Tritanopia (blue-blind)
#4D2B41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51166e;
/* rgb */ color: rgb(81, 22, 110);
/* oklch */ color: oklch(34.4% 0.145 311.6);
Tailwind
colors: {
  custom: {
    50: '#865b98',
    500: '#51166e',
    950: '#000000',
  },
}
SCSS
$custom: #51166e;
$custom-light: #865b98;
$custom-dark: #000000;
JSON
{
  "hex": "#51166e",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 110
  },
  "hsl": {
    "h": 280.227,
    "s": 66.667,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34421,
    "c": 0.14515,
    "h": 311.6
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#51166E
secondary
#5EA43C
accent
#EA3E77
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #51166E

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

Preview Lab → · Contrast checker → · Palette generator →

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