#51177C#51177C

#51177C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.7% C 0.158 H 305.6°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#51177C
RGBrgb(81, 23, 124)
HSLhsl(274, 69%, 29%)
HSVhsv(274, 81%, 49%)
CMYKcmyk(34.7%, 81.5%, 0%, 51.4%)
CIE-LABlab(23.06, 44.54, -45.23)
CIE-LCHlch(23.06, 63.48, 314.56°)
OKLaboklab(35.7% 0.0921 -0.1288)
OKLCHoklch(35.7% 0.158 305.6)
XYZxyz(7.3370, 3.8174, 19.4152)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51177C #427C17
analogous
#1F177C #51177C #7C1775
triadic
#51177C #7C5117 #177C51
tetradic
#51177C #7C1F17 #427C17 #17757C
square
#51177C #7C1F17 #427C17 #17757C
split-complementary
#51177C #757C17 #177C1F
monochromatic
#11051A #2F0D48 #51177C #7321B0 #9334D9

Accessibility & contrast

On white

11.91
#51177C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#51177C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51177C
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51177C#FFFFFF#000000##FFFFFF
##51177C1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#49314A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #51177c;
/* rgb */ color: rgb(81, 23, 124);
/* oklch */ color: oklch(35.7% 0.158 305.6);
Tailwind
colors: {
  custom: {
    50: '#875ca3',
    500: '#51177c',
    950: '#000000',
  },
}
SCSS
$custom: #51177c;
$custom-light: #875ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#51177c",
  "rgb": {
    "r": 81,
    "g": 23,
    "b": 124
  },
  "hsl": {
    "h": 274.455,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.35696,
    "c": 0.15832,
    "h": 305.6
  },
  "luminance": 0.03817
}

Semantic roles & 50–950 ramp

primary
#51177C
secondary
#6FB13E
accent
#EC3C87
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51177C

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

Preview Lab → · Contrast checker → · Palette generator →

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