#51167F#51167F

#51167F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.9% C 0.162 H 304.5°. Best body text is #FFFFFF at 11.86:1 contrast (WCAG AA passes).

Color values

HEX#51167F
RGBrgb(81, 22, 127)
HSLhsl(274, 70%, 29%)
HSVhsv(274, 83%, 50%)
CMYKcmyk(36.2%, 82.7%, 0%, 50.2%)
CIE-LABlab(23.19, 45.64, -46.92)
CIE-LCHlch(23.19, 65.46, 314.21°)
OKLaboklab(35.87% 0.092 -0.1338)
OKLCHoklch(35.87% 0.162 304.5)
XYZxyz(7.5101, 3.8555, 20.4231)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51167F #447F16
analogous
#1C167F #51167F #7F1679
triadic
#51167F #7F5116 #167F51
tetradic
#51167F #7F1C16 #447F16 #16797F
square
#51167F #7F1C16 #447F16 #16797F
split-complementary
#51167F #797F16 #167F1C
monochromatic
#11051A #300D4B #51167F #721FB3 #9234DC

Accessibility & contrast

On white

11.86
#51167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#51167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51167F
11.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51167F#FFFFFF#000000##FFFFFF
##51167F1.0011.861.7711.86
#FFFFFF11.861.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#00377D
Tritanopia (blue-blind)
#48324B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #51167f;
/* rgb */ color: rgb(81, 22, 127);
/* oklch */ color: oklch(35.9% 0.162 304.5);
Tailwind
colors: {
  custom: {
    50: '#875ca5',
    500: '#51167f',
    950: '#000000',
  },
}
SCSS
$custom: #51167f;
$custom-light: #875ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#51167f",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 273.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.35867,
    "c": 0.16238,
    "h": 304.5
  },
  "luminance": 0.03855
}

Semantic roles & 50–950 ramp

primary
#51167F
secondary
#71B43D
accent
#ED3B89
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51167F

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

Preview Lab → · Contrast checker → · Palette generator →

#51167F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva