#51198D#51198D

#51198D is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.174 H 299.4°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#51198D
RGBrgb(81, 25, 141)
HSLhsl(269, 70%, 33%)
HSVhsv(269, 82%, 55%)
CMYKcmyk(42.6%, 82.3%, 0%, 44.7%)
CIE-LABlab(24.85, 47.93, -52.99)
CIE-LCHlch(24.85, 71.45, 312.13°)
OKLaboklab(37.42% 0.0853 -0.1516)
OKLCHoklch(37.42% 0.174 299.4)
XYZxyz(8.5475, 4.3676, 25.5868)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51198D #558D19
analogous
#191B8D #51198D #8B198D
triadic
#51198D #8D5119 #198D51
tetradic
#51198D #8D191B #558D19 #198D8B
square
#51198D #8D191B #558D19 #198D8B
split-complementary
#51198D #8D8B19 #1B8D19
monochromatic
#150725 #331059 #51198D #6F22C1 #8E43DE

Accessibility & contrast

On white

11.21
#51198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51198D
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51198D#FFFFFF#000000##FFFFFF
##51198D1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51198d;
/* rgb */ color: rgb(81, 25, 141);
/* oklch */ color: oklch(37.4% 0.174 299.4);
Tailwind
colors: {
  custom: {
    50: '#885eaf',
    500: '#51198d',
    950: '#000000',
  },
}
SCSS
$custom: #51198d;
$custom-light: #885eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#51198d",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 268.966,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37415,
    "c": 0.17396,
    "h": 299.4
  },
  "luminance": 0.04368
}

Semantic roles & 50–950 ramp

primary
#51198D
secondary
#83BF43
accent
#ED3B97
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #51198D

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

Preview Lab → · Contrast checker → · Palette generator →

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