#51187C#51187C

#51187C is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.8% C 0.157 H 305.4°. Best body text is #FFFFFF at 11.85:1 contrast (WCAG AA passes).

Color values

HEX#51187C
RGBrgb(81, 24, 124)
HSLhsl(274, 68%, 29%)
HSVhsv(274, 81%, 49%)
CMYKcmyk(34.7%, 80.6%, 0%, 51.4%)
CIE-LABlab(23.20, 44.14, -45.00)
CIE-LCHlch(23.20, 63.04, 314.45°)
OKLaboklab(35.79% 0.0912 -0.1282)
OKLCHoklch(35.79% 0.157 305.4)
XYZxyz(7.3572, 3.8579, 19.4219)
Luminance0.0386 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51187C #437C18
analogous
#1F187C #51187C #7C1875
triadic
#51187C #7C5118 #187C51
tetradic
#51187C #7C1F18 #437C18 #18757C
square
#51187C #7C1F18 #437C18 #18757C
split-complementary
#51187C #757C18 #187C1F
monochromatic
#11051A #300E49 #51187C #7222AF #9336D8

Accessibility & contrast

On white

11.85
#51187C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#51187C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51187C
11.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51187C#FFFFFF#000000##FFFFFF
##51187C1.0011.851.7711.85
#FFFFFF11.851.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367F
Deuteranopia (green-blind)
#00377A
Tritanopia (blue-blind)
#49324A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #51187c;
/* rgb */ color: rgb(81, 24, 124);
/* oklch */ color: oklch(35.8% 0.157 305.4);
Tailwind
colors: {
  custom: {
    50: '#875ca3',
    500: '#51187c',
    950: '#000000',
  },
}
SCSS
$custom: #51187c;
$custom-light: #875ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#51187c",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 124
  },
  "hsl": {
    "h": 274.2,
    "s": 67.568,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35792,
    "c": 0.15728,
    "h": 305.4
  },
  "luminance": 0.03858
}

Semantic roles & 50–950 ramp

primary
#51187C
secondary
#70B13F
accent
#EA3D88
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51187C

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

Preview Lab → · Contrast checker → · Palette generator →

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