#51289C#51289C

#51289C is a dark, vivid violet. Relative luminance 0.057; OKLCH L 40.4% C 0.175 H 293.0°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).

Color values

HEX#51289C
RGBrgb(81, 40, 156)
HSLhsl(261, 59%, 38%)
HSVhsv(261, 74%, 61%)
CMYKcmyk(48.1%, 74.4%, 0%, 38.8%)
CIE-LABlab(28.56, 45.17, -56.16)
CIE-LCHlch(28.56, 72.07, 308.81°)
OKLaboklab(40.43% 0.0684 -0.161)
OKLCHoklch(40.43% 0.175 293)
XYZxyz(10.1512, 5.6669, 32.0050)
Luminance0.0567 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51289C #739C28
analogous
#28399C #51289C #8B289C
triadic
#51289C #9C5128 #289C51
tetradic
#51289C #9C2839 #739C28 #289C8B
square
#51289C #9C2839 #739C28 #289C8B
split-complementary
#51289C #9C8B28 #399C28
monochromatic
#1E0F3B #381C6B #51289C #6B36CB #8F67D8

Accessibility & contrast

On white

9.84
#51289C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#51289C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51289C
9.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51289C#FFFFFF#000000##FFFFFF
##51289C1.009.842.139.84
#FFFFFF9.841.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00459F
Deuteranopia (green-blind)
#00419A
Tritanopia (blue-blind)
#3A4760
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #51289c;
/* rgb */ color: rgb(81, 40, 156);
/* oklch */ color: oklch(40.4% 0.175 293.0);
Tailwind
colors: {
  custom: {
    50: '#8966ba',
    500: '#51289c',
    950: '#000000',
  },
}
SCSS
$custom: #51289c;
$custom-light: #8966ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51289c",
  "rgb": {
    "r": 81,
    "g": 40,
    "b": 156
  },
  "hsl": {
    "h": 261.207,
    "s": 59.184,
    "l": 38.431
  },
  "oklch": {
    "l": 0.40427,
    "c": 0.17497,
    "h": 293
  },
  "luminance": 0.05667
}

Semantic roles & 50–950 ramp

primary
#51289C
secondary
#9DBE62
accent
#E245AB
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0C0612
muted
#7D7A81

Preview Lab

Preview with #51289C

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

Preview Lab → · Contrast checker → · Palette generator →

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