#51177A#51177A

#51177A is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.156 H 306.3°. Best body text is #FFFFFF at 11.98:1 contrast (WCAG AA passes).

Color values

HEX#51177A
RGBrgb(81, 23, 122)
HSLhsl(275, 68%, 28%)
HSVhsv(275, 81%, 48%)
CMYKcmyk(33.6%, 81.1%, 0%, 52.2%)
CIE-LABlab(22.89, 44.06, -44.24)
CIE-LCHlch(22.89, 62.43, 314.89°)
OKLaboklab(35.52% 0.0926 -0.1259)
OKLCHoklch(35.52% 0.156 306.3)
XYZxyz(7.2118, 3.7673, 18.7558)
Luminance0.0377 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51177A #407A17
analogous
#20177A #51177A #7A1771
triadic
#51177A #7A5117 #177A51
tetradic
#51177A #7A2017 #407A17 #17717A
square
#51177A #7A2017 #407A17 #17717A
split-complementary
#51177A #717A17 #177A20
monochromatic
#11051A #2F0D47 #51177A #7321AD #9433D9

Accessibility & contrast

On white

11.98
#51177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#51177A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51177A
11.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51177A#FFFFFF#000000##FFFFFF
##51177A1.0011.981.7511.98
#FFFFFF11.981.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#4A3148
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #51177a;
/* rgb */ color: rgb(81, 23, 122);
/* oklch */ color: oklch(35.5% 0.156 306.3);
Tailwind
colors: {
  custom: {
    50: '#865ca1',
    500: '#51177a',
    950: '#000000',
  },
}
SCSS
$custom: #51177a;
$custom-light: #865ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#51177a",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 275.152,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35522,
    "c": 0.15627,
    "h": 306.3
  },
  "luminance": 0.03767
}

Semantic roles & 50–950 ramp

primary
#51177A
secondary
#6DAF3E
accent
#EB3D85
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51177A

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

Preview Lab → · Contrast checker → · Palette generator →

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