#51289D#51289D

#51289D is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.5% C 0.176 H 292.8°. Best body text is #FFFFFF at 9.81:1 contrast (WCAG AA passes).

Color values

HEX#51289D
RGBrgb(81, 40, 157)
HSLhsl(261, 59%, 39%)
HSVhsv(261, 75%, 62%)
CMYKcmyk(48.4%, 74.5%, 0%, 38.4%)
CIE-LABlab(28.64, 45.45, -56.62)
CIE-LCHlch(28.64, 72.61, 308.75°)
OKLaboklab(40.52% 0.0682 -0.1624)
OKLCHoklch(40.52% 0.176 292.8)
XYZxyz(10.2362, 5.7009, 32.4528)
Luminance0.0570 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51289D #749D28
analogous
#28399D #51289D #8B289D
triadic
#51289D #9D5128 #289D51
tetradic
#51289D #9D2839 #749D28 #289D8B
square
#51289D #9D2839 #749D28 #289D8B
split-complementary
#51289D #9D8B28 #399D28
monochromatic
#1F0F3B #381C6C #51289D #6B36CC #8F67D8

Accessibility & contrast

On white

9.81
#51289D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#51289D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51289D
9.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51289D#FFFFFF#000000##FFFFFF
##51289D1.009.812.149.81
#FFFFFF9.811.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A0
Deuteranopia (green-blind)
#00419B
Tritanopia (blue-blind)
#394760
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #51289d;
/* rgb */ color: rgb(81, 40, 157);
/* oklch */ color: oklch(40.5% 0.176 292.8);
Tailwind
colors: {
  custom: {
    50: '#8966bb',
    500: '#51289d',
    950: '#000000',
  },
}
SCSS
$custom: #51289d;
$custom-light: #8966bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51289d",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 157
  },
  "hsl": {
    "h": 261.026,
    "s": 59.391,
    "l": 38.627
  },
  "oklch": {
    "l": 0.40517,
    "c": 0.17614,
    "h": 292.8
  },
  "luminance": 0.05701
}

Semantic roles & 50–950 ramp

primary
#51289D
secondary
#9EBE62
accent
#E345AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51289D

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

Preview Lab → · Contrast checker → · Palette generator →

#51289D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva