#51176E#51176E

#51176E is a dark, vivid purple. Relative luminance 0.035; OKLCH L 34.5% C 0.144 H 311.4°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#51176E
RGBrgb(81, 23, 110)
HSLhsl(280, 65%, 26%)
HSVhsv(280, 79%, 43%)
CMYKcmyk(26.4%, 79.1%, 0%, 56.9%)
CIE-LABlab(21.90, 41.25, -38.13)
CIE-LCHlch(21.90, 56.17, 317.25°)
OKLaboklab(34.52% 0.0953 -0.1079)
OKLCHoklch(34.52% 0.144 311.4)
XYZxyz(6.5137, 3.4881, 15.0790)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51176E #346E17
analogous
#25176E #51176E #6E175F
triadic
#51176E #6E5117 #176E51
tetradic
#51176E #6E2517 #346E17 #175F6E
square
#51176E #6E2517 #346E17 #175F6E
split-complementary
#51176E #5F6E17 #176E25
monochromatic
#130519 #2C0C3B #51176E #7622A1 #9B2CD3

Accessibility & contrast

On white

12.37
#51176E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#51176E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51176E
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51176E#FFFFFF#000000##FFFFFF
##51176E1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003270
Deuteranopia (green-blind)
#07356C
Tritanopia (blue-blind)
#4D2B42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #51176e;
/* rgb */ color: rgb(81, 23, 110);
/* oklch */ color: oklch(34.5% 0.144 311.4);
Tailwind
colors: {
  custom: {
    50: '#855b98',
    500: '#51176e',
    950: '#000000',
  },
}
SCSS
$custom: #51176e;
$custom-light: #855b98;
$custom-dark: #000000;
JSON
{
  "hex": "#51176e",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 110
  },
  "hsl": {
    "h": 280,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.34521,
    "c": 0.14401,
    "h": 311.4
  },
  "luminance": 0.03488
}

Semantic roles & 50–950 ramp

primary
#51176E
secondary
#5FA43D
accent
#E83F78
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #51176E

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

Preview Lab → · Contrast checker → · Palette generator →

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