#51117C#51117C

#51117C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.2% C 0.164 H 306.2°. Best body text is #FFFFFF at 12.20:1 contrast (WCAG AA passes).

Color values

HEX#51117C
RGBrgb(81, 17, 124)
HSLhsl(276, 76%, 28%)
HSVhsv(276, 86%, 49%)
CMYKcmyk(34.7%, 86.3%, 0%, 51.4%)
CIE-LABlab(22.32, 46.68, -46.43)
CIE-LCHlch(22.32, 65.84, 315.16°)
OKLaboklab(35.18% 0.0968 -0.1323)
OKLCHoklch(35.18% 0.164 306.2)
XYZxyz(7.2311, 3.6055, 19.3799)
Luminance0.0360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51117C #3C7C11
analogous
#1B117C #51117C #7C1171
triadic
#51117C #7C5111 #117C51
tetradic
#51117C #7C1B11 #3C7C11 #11717C
square
#51117C #7C1B11 #3C7C11 #11717C
split-complementary
#51117C #717C11 #117C1B
monochromatic
#12041B #2E0A46 #51117C #7418B2 #9626E1

Accessibility & contrast

On white

12.20
#51117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#51117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51117C
12.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51117C#FFFFFF#000000##FFFFFF
##51117C1.0012.201.7212.20
#FFFFFF12.201.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00367A
Tritanopia (blue-blind)
#492F48
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #51117c;
/* rgb */ color: rgb(81, 17, 124);
/* oklch */ color: oklch(35.2% 0.164 306.2);
Tailwind
colors: {
  custom: {
    50: '#8759a3',
    500: '#51117c',
    950: '#000000',
  },
}
SCSS
$custom: #51117c;
$custom-light: #8759a3;
$custom-dark: #000000;
JSON
{
  "hex": "#51117c",
  "rgb": {
    "r": 81,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 275.888,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35183,
    "c": 0.16391,
    "h": 306.2
  },
  "luminance": 0.03605
}

Semantic roles & 50–950 ramp

primary
#51117C
secondary
#68B237
accent
#F23581
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51117C

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

Preview Lab → · Contrast checker → · Palette generator →

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