#51167C#51167C

#51167C is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.6% C 0.159 H 305.7°. Best body text is #FFFFFF at 11.96:1 contrast (WCAG AA passes).

Color values

HEX#51167C
RGBrgb(81, 22, 124)
HSLhsl(275, 70%, 29%)
HSVhsv(275, 82%, 49%)
CMYKcmyk(34.7%, 82.3%, 0%, 51.4%)
CIE-LABlab(22.92, 44.93, -45.45)
CIE-LCHlch(22.92, 63.90, 314.67°)
OKLaboklab(35.6% 0.0929 -0.1294)
OKLCHoklch(35.6% 0.159 305.7)
XYZxyz(7.3175, 3.7784, 19.4087)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51167C #417C16
analogous
#1E167C #51167C #7C1674
triadic
#51167C #7C5116 #167C51
tetradic
#51167C #7C1E16 #417C16 #16747C
square
#51167C #7C1E16 #417C16 #16747C
split-complementary
#51167C #747C16 #167C1E
monochromatic
#11051A #2F0D48 #51167C #731FB0 #9332DB

Accessibility & contrast

On white

11.96
#51167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51167C
11.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51167C#FFFFFF#000000##FFFFFF
##51167C1.0011.961.7611.96
#FFFFFF11.961.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51167c;
/* rgb */ color: rgb(81, 22, 124);
/* oklch */ color: oklch(35.6% 0.159 305.7);
Tailwind
colors: {
  custom: {
    50: '#875ba3',
    500: '#51167c',
    950: '#000000',
  },
}
SCSS
$custom: #51167c;
$custom-light: #875ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#51167c",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 274.706,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35602,
    "c": 0.15934,
    "h": 305.7
  },
  "luminance": 0.03778
}

Semantic roles & 50–950 ramp

primary
#51167C
secondary
#6EB13D
accent
#ED3B86
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51167C

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

Preview Lab → · Contrast checker → · Palette generator →

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