#51198B#51198B

#51198B is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.172 H 300.0°. Best body text is #FFFFFF at 11.28:1 contrast (WCAG AA passes).

Color values

HEX#51198B
RGBrgb(81, 25, 139)
HSLhsl(269, 70%, 32%)
HSVhsv(269, 82%, 55%)
CMYKcmyk(41.7%, 82%, 0%, 45.5%)
CIE-LABlab(24.67, 47.43, -52.04)
CIE-LCHlch(24.67, 70.41, 312.34°)
OKLaboklab(37.23% 0.086 -0.1488)
OKLCHoklch(37.23% 0.172 300)
XYZxyz(8.4000, 4.3086, 24.8102)
Luminance0.0431 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51198B #538B19
analogous
#191A8B #51198B #8A198B
triadic
#51198B #8B5119 #198B51
tetradic
#51198B #8B191A #538B19 #198B8A
square
#51198B #8B191A #538B19 #198B8A
split-complementary
#51198B #8B8A19 #1A8B19
monochromatic
#150623 #331057 #51198B #6F22BF #8E41DD

Accessibility & contrast

On white

11.28
#51198B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#51198B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51198B
11.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51198B#FFFFFF#000000##FFFFFF
##51198B1.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)
#003A8E
Deuteranopia (green-blind)
#003A89
Tritanopia (blue-blind)
#433953
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #51198b;
/* rgb */ color: rgb(81, 25, 139);
/* oklch */ color: oklch(37.2% 0.172 300.0);
Tailwind
colors: {
  custom: {
    50: '#885eae',
    500: '#51198b',
    950: '#000000',
  },
}
SCSS
$custom: #51198b;
$custom-light: #885eae;
$custom-dark: #000000;
JSON
{
  "hex": "#51198b",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 139
  },
  "hsl": {
    "h": 269.474,
    "s": 69.512,
    "l": 32.157
  },
  "oklch": {
    "l": 0.3723,
    "c": 0.17187,
    "h": 300
  },
  "luminance": 0.04309
}

Semantic roles & 50–950 ramp

primary
#51198B
secondary
#81BE42
accent
#EC3B95
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #51198B

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

Preview Lab → · Contrast checker → · Palette generator →

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