#51167B#51167B

#51167B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.158 H 306.1°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#51167B
RGBrgb(81, 22, 123)
HSLhsl(275, 70%, 28%)
HSVhsv(275, 82%, 48%)
CMYKcmyk(34.1%, 82.1%, 0%, 51.8%)
CIE-LABlab(22.84, 44.69, -44.95)
CIE-LCHlch(22.84, 63.38, 314.83°)
OKLaboklab(35.52% 0.0932 -0.128)
OKLCHoklch(35.52% 0.158 306.1)
XYZxyz(7.2546, 3.7533, 19.0773)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51167B #407B16
analogous
#1F167B #51167B #7B1672
triadic
#51167B #7B5116 #167B51
tetradic
#51167B #7B1F16 #407B16 #16727B
square
#51167B #7B1F16 #407B16 #16727B
split-complementary
#51167B #727B16 #167B1F
monochromatic
#11051A #2F0D47 #51167B #731FAF #9431DA

Accessibility & contrast

On white

12.00
#51167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#51167B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51167B
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51167B#FFFFFF#000000##FFFFFF
##51167B1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003779
Tritanopia (blue-blind)
#493149
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #51167b;
/* rgb */ color: rgb(81, 22, 123);
/* oklch */ color: oklch(35.5% 0.158 306.1);
Tailwind
colors: {
  custom: {
    50: '#875ba2',
    500: '#51167b',
    950: '#000000',
  },
}
SCSS
$custom: #51167b;
$custom-light: #875ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#51167b",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 275.05,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35515,
    "c": 0.15832,
    "h": 306.1
  },
  "luminance": 0.03753
}

Semantic roles & 50–950 ramp

primary
#51167B
secondary
#6DB03D
accent
#EC3B85
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51167B

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

Preview Lab → · Contrast checker → · Palette generator →

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