#51287A#51287A

#51287A is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.6% C 0.135 H 303.5°. Best body text is #FFFFFF at 10.86:1 contrast (WCAG AA passes).

Color values

HEX#51287A
RGBrgb(81, 40, 122)
HSLhsl(270, 51%, 32%)
HSVhsv(270, 67%, 48%)
CMYKcmyk(33.6%, 67.2%, 0%, 52.2%)
CIE-LABlab(25.78, 35.93, -39.55)
CIE-LCHlch(25.78, 53.43, 312.26°)
OKLaboklab(37.58% 0.0743 -0.1122)
OKLCHoklch(37.58% 0.135 303.5)
XYZxyz(7.6642, 4.6721, 18.9066)
Luminance0.0467 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51287A #517A28
analogous
#28287A #51287A #7A287A
triadic
#51287A #7A5128 #287A51
tetradic
#51287A #7A2828 #517A28 #287A7A
square
#51287A #7A2828 #517A28 #287A7A
split-complementary
#51287A #7A7A28 #287A28
monochromatic
#140A1E #32194C #51287A #7037A8 #8E55C7

Accessibility & contrast

On white

10.86
#51287A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#51287A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51287A
10.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51287A#FFFFFF#000000##FFFFFF
##51287A1.0010.861.9310.86
#FFFFFF10.861.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#0D3D78
Tritanopia (blue-blind)
#493A4D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #51287a;
/* rgb */ color: rgb(81, 40, 122);
/* oklch */ color: oklch(37.6% 0.135 303.5);
Tailwind
colors: {
  custom: {
    50: '#8565a1',
    500: '#51287a',
    950: '#000000',
  },
}
SCSS
$custom: #51287a;
$custom-light: #8565a1;
$custom-dark: #000000;
JSON
{
  "hex": "#51287a",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 122
  },
  "hsl": {
    "h": 270,
    "s": 50.617,
    "l": 31.765
  },
  "oklch": {
    "l": 0.37579,
    "c": 0.13458,
    "h": 303.5
  },
  "luminance": 0.04672
}

Semantic roles & 50–950 ramp

primary
#51287A
secondary
#7FAC52
accent
#DA4E94
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #51287A

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

Preview Lab → · Contrast checker → · Palette generator →

#51287A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva