#51168F#51168F

#51168F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.179 H 299.1°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#51168F
RGBrgb(81, 22, 143)
HSLhsl(269, 73%, 32%)
HSVhsv(269, 85%, 56%)
CMYKcmyk(43.4%, 84.6%, 0%, 43.9%)
CIE-LABlab(24.66, 49.54, -54.54)
CIE-LCHlch(24.66, 73.68, 312.25°)
OKLaboklab(37.34% 0.0868 -0.1561)
OKLCHoklch(37.34% 0.179 299.1)
XYZxyz(8.6369, 4.3062, 26.3574)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51168F #548F16
analogous
#16188F #51168F #8D168F
triadic
#51168F #8F5116 #168F51
tetradic
#51168F #8F1618 #548F16 #168F8D
square
#51168F #8F1618 #548F16 #168F8D
split-complementary
#51168F #8F8D16 #188F16
monochromatic
#150625 #330E5A #51168F #6F1EC4 #8E3EE1

Accessibility & contrast

On white

11.28
#51168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#51168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51168F
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51168F#FFFFFF#000000##FFFFFF
##51168F1.0011.281.8611.28
#FFFFFF11.281.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#413954
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #51168f;
/* rgb */ color: rgb(81, 22, 143);
/* oklch */ color: oklch(37.3% 0.179 299.1);
Tailwind
colors: {
  custom: {
    50: '#895db1',
    500: '#51168f',
    950: '#000000',
  },
}
SCSS
$custom: #51168f;
$custom-light: #895db1;
$custom-dark: #000000;
JSON
{
  "hex": "#51168f",
  "rgb": {
    "r": 81,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 269.256,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37339,
    "c": 0.17865,
    "h": 299.1
  },
  "luminance": 0.04306
}

Semantic roles & 50–950 ramp

primary
#51168F
secondary
#82C13F
accent
#F03896
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #51168F

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

Preview Lab → · Contrast checker → · Palette generator →

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