#51288E#51288E

#51288E is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.2% C 0.159 H 296.8°. Best body text is #FFFFFF at 10.27:1 contrast (WCAG AA passes).

Color values

HEX#51288E
RGBrgb(81, 40, 142)
HSLhsl(264, 56%, 36%)
HSVhsv(264, 72%, 56%)
CMYKcmyk(43%, 71.8%, 0%, 44.3%)
CIE-LABlab(27.35, 41.32, -49.52)
CIE-LCHlch(27.35, 64.49, 309.84°)
OKLaboklab(39.2% 0.0714 -0.1415)
OKLCHoklch(39.2% 0.159 296.8)
XYZxyz(9.0333, 5.2197, 26.1175)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51288E #658E28
analogous
#28328E #51288E #84288E
triadic
#51288E #8E5128 #288E51
tetradic
#51288E #8E2832 #658E28 #288E84
square
#51288E #8E2832 #658E28 #288E84
split-complementary
#51288E #8E8428 #328E28
monochromatic
#1B0D2F #361B5E #51288E #6C35BE #8D5FD2

Accessibility & contrast

On white

10.27
#51288E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#51288E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51288E
10.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51288E#FFFFFF#000000##FFFFFF
##51288E1.0010.272.0410.27
#FFFFFF10.271.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004191
Deuteranopia (green-blind)
#003F8C
Tritanopia (blue-blind)
#414158
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51288e;
/* rgb */ color: rgb(81, 40, 142);
/* oklch */ color: oklch(39.2% 0.159 296.8);
Tailwind
colors: {
  custom: {
    50: '#8865b0',
    500: '#51288e',
    950: '#000000',
  },
}
SCSS
$custom: #51288e;
$custom-light: #8865b0;
$custom-dark: #000000;
JSON
{
  "hex": "#51288e",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 142
  },
  "hsl": {
    "h": 264.118,
    "s": 56.044,
    "l": 35.686
  },
  "oklch": {
    "l": 0.392,
    "c": 0.15856,
    "h": 296.8
  },
  "luminance": 0.0522
}

Semantic roles & 50–950 ramp

primary
#51288E
secondary
#92B75B
accent
#DF48A3
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0611
muted
#7D7A80

Preview Lab

Preview with #51288E

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

Preview Lab → · Contrast checker → · Palette generator →

#51288E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva