#51167A#51167A

#51167A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.4% C 0.157 H 306.4°. Best body text is #FFFFFF at 12.03:1 contrast (WCAG AA passes).

Color values

HEX#51167A
RGBrgb(81, 22, 122)
HSLhsl(275, 69%, 28%)
HSVhsv(275, 82%, 48%)
CMYKcmyk(33.6%, 82%, 0%, 52.2%)
CIE-LABlab(22.75, 44.45, -44.45)
CIE-LCHlch(22.75, 62.86, 315.00°)
OKLaboklab(35.43% 0.0935 -0.1265)
OKLCHoklch(35.43% 0.157 306.4)
XYZxyz(7.1923, 3.7284, 18.7493)
Luminance0.0373 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51167A #3F7A16
analogous
#1F167A #51167A #7A1671
triadic
#51167A #7A5116 #167A51
tetradic
#51167A #7A1F16 #3F7A16 #16717A
square
#51167A #7A1F16 #3F7A16 #16717A
split-complementary
#51167A #717A16 #167A1F
monochromatic
#11051A #2F0D46 #51167A #731FAE #9431DA

Accessibility & contrast

On white

12.03
#51167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51167A
12.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51167A#FFFFFF#000000##FFFFFF
##51167A1.0012.031.7512.03
#FFFFFF12.031.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357D
Deuteranopia (green-blind)
#003778
Tritanopia (blue-blind)
#4A3048
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #51167a;
/* rgb */ color: rgb(81, 22, 122);
/* oklch */ color: oklch(35.4% 0.157 306.4);
Tailwind
colors: {
  custom: {
    50: '#875ba1',
    500: '#51167a',
    950: '#000000',
  },
}
SCSS
$custom: #51167a;
$custom-light: #875ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#51167a",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 275.4,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35428,
    "c": 0.1573,
    "h": 306.4
  },
  "luminance": 0.03728
}

Semantic roles & 50–950 ramp

primary
#51167A
secondary
#6CAF3D
accent
#EC3C84
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51167A

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

Preview Lab → · Contrast checker → · Palette generator →

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