#51188D#51188D

#51188D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.175 H 299.5°. Best body text is #FFFFFF at 11.26:1 contrast (WCAG AA passes).

Color values

HEX#51188D
RGBrgb(81, 24, 141)
HSLhsl(269, 71%, 32%)
HSVhsv(269, 83%, 55%)
CMYKcmyk(42.6%, 83%, 0%, 44.7%)
CIE-LABlab(24.72, 48.31, -53.20)
CIE-LCHlch(24.72, 71.86, 312.24°)
OKLaboklab(37.32% 0.0861 -0.1522)
OKLCHoklch(37.32% 0.175 299.5)
XYZxyz(8.5265, 4.3256, 25.5798)
Luminance0.0433 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51188D #548D18
analogous
#18198D #51188D #8C188D
triadic
#51188D #8D5118 #188D51
tetradic
#51188D #8D1819 #548D18 #188D8C
square
#51188D #8D1819 #548D18 #188D8C
split-complementary
#51188D #8D8C18 #198D18
monochromatic
#150624 #330F59 #51188D #6F21C1 #8E41DF

Accessibility & contrast

On white

11.26
#51188D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#51188D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51188D
11.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51188D#FFFFFF#000000##FFFFFF
##51188D1.0011.261.8711.26
#FFFFFF11.261.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B90
Deuteranopia (green-blind)
#003A8B
Tritanopia (blue-blind)
#423954
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #51188d;
/* rgb */ color: rgb(81, 24, 141);
/* oklch */ color: oklch(37.3% 0.175 299.5);
Tailwind
colors: {
  custom: {
    50: '#885daf',
    500: '#51188d',
    950: '#000000',
  },
}
SCSS
$custom: #51188d;
$custom-light: #885daf;
$custom-dark: #000000;
JSON
{
  "hex": "#51188d",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 141
  },
  "hsl": {
    "h": 269.231,
    "s": 70.909,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37323,
    "c": 0.17487,
    "h": 299.5
  },
  "luminance": 0.04326
}

Semantic roles & 50–950 ramp

primary
#51188D
secondary
#82BF42
accent
#EE3A96
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #51188D

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

Preview Lab → · Contrast checker → · Palette generator →

#51188D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva