#51187F#51187F

#51187F is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.160 H 304.3°. Best body text is #FFFFFF at 11.75:1 contrast (WCAG AA passes).

Color values

HEX#51187F
RGBrgb(81, 24, 127)
HSLhsl(273, 68%, 30%)
HSVhsv(273, 81%, 50%)
CMYKcmyk(36.2%, 81.1%, 0%, 50.2%)
CIE-LABlab(23.45, 44.87, -46.48)
CIE-LCHlch(23.45, 64.61, 313.99°)
OKLaboklab(36.05% 0.0904 -0.1325)
OKLCHoklch(36.05% 0.16 304.3)
XYZxyz(7.5499, 3.9349, 20.4363)
Luminance0.0394 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51187F #467F18
analogous
#1E187F #51187F #7F187A
triadic
#51187F #7F5118 #187F51
tetradic
#51187F #7F1E18 #467F18 #187A7F
square
#51187F #7F1E18 #467F18 #187A7F
split-complementary
#51187F #7A7F18 #187F1E
monochromatic
#10051A #300E4C #51187F #7222B2 #9138D9

Accessibility & contrast

On white

11.75
#51187F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#51187F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51187F
11.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51187F#FFFFFF#000000##FFFFFF
##51187F1.0011.751.7911.75
#FFFFFF11.751.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003782
Deuteranopia (green-blind)
#00387D
Tritanopia (blue-blind)
#48334B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #51187f;
/* rgb */ color: rgb(81, 24, 127);
/* oklch */ color: oklch(36.1% 0.160 304.3);
Tailwind
colors: {
  custom: {
    50: '#875ca5',
    500: '#51187f',
    950: '#000000',
  },
}
SCSS
$custom: #51187f;
$custom-light: #875ca5;
$custom-dark: #000000;
JSON
{
  "hex": "#51187f",
  "rgb": {
    "r": 81,
    "g": 24,
    "b": 127
  },
  "hsl": {
    "h": 273.204,
    "s": 68.212,
    "l": 29.608
  },
  "oklch": {
    "l": 0.36054,
    "c": 0.16039,
    "h": 304.3
  },
  "luminance": 0.03935
}

Semantic roles & 50–950 ramp

primary
#51187F
secondary
#73B33F
accent
#EB3D8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51187F

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

Preview Lab → · Contrast checker → · Palette generator →

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