#51188C#51188C

#51188C is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.174 H 299.8°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#51188C
RGBrgb(81, 24, 140)
HSLhsl(269, 71%, 32%)
HSVhsv(269, 83%, 55%)
CMYKcmyk(42.1%, 82.9%, 0%, 45.1%)
CIE-LABlab(24.63, 48.06, -52.73)
CIE-LCHlch(24.63, 71.35, 312.35°)
OKLaboklab(37.23% 0.0864 -0.1509)
OKLCHoklch(37.23% 0.174 299.8)
XYZxyz(8.4524, 4.2959, 25.1897)
Luminance0.0430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51188C #538C18
analogous
#18198C #51188C #8B188C
triadic
#51188C #8C5118 #188C51
tetradic
#51188C #8C1819 #538C18 #188C8B
square
#51188C #8C1819 #538C18 #188C8B
split-complementary
#51188C #8C8B18 #198C18
monochromatic
#150624 #330F58 #51188C #6F21C0 #8E40DE

Accessibility & contrast

On white

11.30
#51188C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#51188C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51188C
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51188C#FFFFFF#000000##FFFFFF
##51188C1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#003A8A
Tritanopia (blue-blind)
#433953
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #51188c;
/* rgb */ color: rgb(81, 24, 140);
/* oklch */ color: oklch(37.2% 0.174 299.8);
Tailwind
colors: {
  custom: {
    50: '#885daf',
    500: '#51188c',
    950: '#000000',
  },
}
SCSS
$custom: #51188c;
$custom-light: #885daf;
$custom-dark: #000000;
JSON
{
  "hex": "#51188c",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 140
  },
  "hsl": {
    "h": 269.483,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3723,
    "c": 0.17384,
    "h": 299.8
  },
  "luminance": 0.04296
}

Semantic roles & 50–950 ramp

primary
#51188C
secondary
#81BF41
accent
#ED3A95
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #51188C

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

Preview Lab → · Contrast checker → · Palette generator →

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