#51289F#51289F

#51289F is a dark, vivid violet. Relative luminance 0.058; OKLCH L 40.7% C 0.178 H 292.3°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).

Color values

HEX#51289F
RGBrgb(81, 40, 159)
HSLhsl(261, 60%, 39%)
HSVhsv(261, 75%, 62%)
CMYKcmyk(49.1%, 74.8%, 0%, 37.6%)
CIE-LABlab(28.82, 46.01, -57.55)
CIE-LCHlch(28.82, 73.68, 308.64°)
OKLaboklab(40.7% 0.0677 -0.1651)
OKLCHoklch(40.7% 0.178 292.3)
XYZxyz(10.4084, 5.7697, 33.3594)
Luminance0.0577 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51289F #769F28
analogous
#283B9F #51289F #8D289F
triadic
#51289F #9F5128 #289F51
tetradic
#51289F #9F283B #769F28 #289F8D
square
#51289F #9F283B #769F28 #289F8D
split-complementary
#51289F #9F8D28 #3B9F28
monochromatic
#1F0F3D #381C6E #51289F #6B37CD #8F68D9

Accessibility & contrast

On white

9.75
#51289F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51289F
9.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51289F#FFFFFF#000000##FFFFFF
##51289F1.009.752.159.75
#FFFFFF9.751.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046A2
Deuteranopia (green-blind)
#00429D
Tritanopia (blue-blind)
#384861
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #51289f;
/* rgb */ color: rgb(81, 40, 159);
/* oklch */ color: oklch(40.7% 0.178 292.3);
Tailwind
colors: {
  custom: {
    50: '#8a66bc',
    500: '#51289f',
    950: '#000000',
  },
}
SCSS
$custom: #51289f;
$custom-light: #8a66bc;
$custom-dark: #000000;
JSON
{
  "hex": "#51289f",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 159
  },
  "hsl": {
    "h": 260.672,
    "s": 59.799,
    "l": 39.02
  },
  "oklch": {
    "l": 0.40699,
    "c": 0.17845,
    "h": 292.3
  },
  "luminance": 0.0577
}

Semantic roles & 50–950 ramp

primary
#51289F
secondary
#A0BF64
accent
#E345AC
background
#F8F6FB
surface
#F0EBF7
border
#CBC6D0
text
#0D0612
muted
#7D7A81

Preview Lab

Preview with #51289F

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

Preview Lab → · Contrast checker → · Palette generator →

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