#51198F#51198F

#51198F is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.6% C 0.176 H 298.7°. Best body text is #FFFFFF at 11.14:1 contrast (WCAG AA passes).

Color values

HEX#51198F
RGBrgb(81, 25, 143)
HSLhsl(268, 70%, 33%)
HSVhsv(268, 83%, 56%)
CMYKcmyk(43.4%, 82.5%, 0%, 43.9%)
CIE-LABlab(25.04, 48.43, -53.92)
CIE-LCHlch(25.04, 72.48, 311.93°)
OKLaboklab(37.6% 0.0847 -0.1544)
OKLCHoklch(37.6% 0.176 298.7)
XYZxyz(8.6976, 4.4276, 26.3777)
Luminance0.0443 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51198F #578F19
analogous
#191C8F #51198F #8C198F
triadic
#51198F #8F5119 #198F51
tetradic
#51198F #8F191C #578F19 #198F8C
square
#51198F #8F191C #578F19 #198F8C
split-complementary
#51198F #8F8C19 #1C8F19
monochromatic
#160727 #33105B #51198F #6F22C3 #8D44DE

Accessibility & contrast

On white

11.14
#51198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#51198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51198F
11.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51198F#FFFFFF#000000##FFFFFF
##51198F1.0011.141.8911.14
#FFFFFF11.141.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B92
Deuteranopia (green-blind)
#003A8D
Tritanopia (blue-blind)
#413B55
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #51198f;
/* rgb */ color: rgb(81, 25, 143);
/* oklch */ color: oklch(37.6% 0.176 298.7);
Tailwind
colors: {
  custom: {
    50: '#895eb1',
    500: '#51198f',
    950: '#000000',
  },
}
SCSS
$custom: #51198f;
$custom-light: #895eb1;
$custom-dark: #000000;
JSON
{
  "hex": "#51198f",
  "rgb": {
    "r": 81,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 268.475,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.37601,
    "c": 0.17605,
    "h": 298.7
  },
  "luminance": 0.04428
}

Semantic roles & 50–950 ramp

primary
#51198F
secondary
#85BF44
accent
#ED3B98
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #51198F

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

Preview Lab → · Contrast checker → · Palette generator →

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