#51297D#51297D

#51297D is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.0% C 0.137 H 302.2°. Best body text is #FFFFFF at 10.70:1 contrast (WCAG AA passes).

Color values

HEX#51297D
RGBrgb(81, 41, 125)
HSLhsl(269, 51%, 33%)
HSVhsv(269, 67%, 49%)
CMYKcmyk(35.2%, 67.2%, 0%, 51%)
CIE-LABlab(26.20, 36.17, -40.76)
CIE-LCHlch(26.20, 54.50, 311.59°)
OKLaboklab(37.96% 0.0728 -0.1158)
OKLCHoklch(37.96% 0.137 302.2)
XYZxyz(7.8871, 4.8159, 19.9121)
Luminance0.0482 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51297D #557D29
analogous
#292B7D #51297D #7B297D
triadic
#51297D #7D5129 #297D51
tetradic
#51297D #7D292B #557D29 #297D7B
square
#51297D #7D292B #557D29 #297D7B
split-complementary
#51297D #7D7B29 #2B7D29
monochromatic
#150B21 #331A4F #51297D #6F38AB #8E58C8

Accessibility & contrast

On white

10.70
#51297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#51297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51297D
10.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51297D#FFFFFF#000000##FFFFFF
##51297D1.0010.701.9610.70
#FFFFFF10.701.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D80
Deuteranopia (green-blind)
#083E7B
Tritanopia (blue-blind)
#483C4F
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #51297d;
/* rgb */ color: rgb(81, 41, 125);
/* oklch */ color: oklch(38.0% 0.137 302.2);
Tailwind
colors: {
  custom: {
    50: '#8665a3',
    500: '#51297d',
    950: '#000000',
  },
}
SCSS
$custom: #51297d;
$custom-light: #8665a3;
$custom-dark: #000000;
JSON
{
  "hex": "#51297d",
  "rgb": {
    "r": 81,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 268.571,
    "s": 50.602,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37955,
    "c": 0.13675,
    "h": 302.2
  },
  "luminance": 0.04816
}

Semantic roles & 50–950 ramp

primary
#51297D
secondary
#83AE54
accent
#DA4E97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #51297D

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

Preview Lab → · Contrast checker → · Palette generator →

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