#51289E#51289E

#51289E is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.6% C 0.177 H 292.5°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#51289E
RGBrgb(81, 40, 158)
HSLhsl(261, 60%, 39%)
HSVhsv(261, 75%, 62%)
CMYKcmyk(48.7%, 74.7%, 0%, 38%)
CIE-LABlab(28.73, 45.73, -57.08)
CIE-LCHlch(28.73, 73.14, 308.70°)
OKLaboklab(40.61% 0.068 -0.1637)
OKLCHoklch(40.61% 0.177 292.5)
XYZxyz(10.3220, 5.7352, 32.9043)
Luminance0.0574 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51289E #759E28
analogous
#283A9E #51289E #8C289E
triadic
#51289E #9E5128 #289E51
tetradic
#51289E #9E283A #759E28 #289E8C
square
#51289E #9E283A #759E28 #289E8C
split-complementary
#51289E #9E8C28 #3A9E28
monochromatic
#1F0F3C #381C6D #51289E #6B37CC #8F68D9

Accessibility & contrast

On white

9.78
#51289E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#51289E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51289E
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51289E#FFFFFF#000000##FFFFFF
##51289E1.009.782.159.78
#FFFFFF9.781.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0045A1
Deuteranopia (green-blind)
#00419C
Tritanopia (blue-blind)
#394761
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #51289e;
/* rgb */ color: rgb(81, 40, 158);
/* oklch */ color: oklch(40.6% 0.177 292.5);
Tailwind
colors: {
  custom: {
    50: '#8a66bc',
    500: '#51289e',
    950: '#000000',
  },
}
SCSS
$custom: #51289e;
$custom-light: #8a66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51289e",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 158
  },
  "hsl": {
    "h": 260.847,
    "s": 59.596,
    "l": 38.824
  },
  "oklch": {
    "l": 0.40608,
    "c": 0.17729,
    "h": 292.5
  },
  "luminance": 0.05736
}

Semantic roles & 50–950 ramp

primary
#51289E
secondary
#9FBF63
accent
#E345AC
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51289E

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

Preview Lab → · Contrast checker → · Palette generator →

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