#51209D#51209D

#51209D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.6% C 0.184 H 293.9°. Best body text is #FFFFFF at 10.28:1 contrast (WCAG AA passes).

Color values

HEX#51209D
RGBrgb(81, 32, 157)
HSLhsl(264, 66%, 37%)
HSVhsv(264, 80%, 62%)
CMYKcmyk(48.4%, 79.6%, 0%, 38.4%)
CIE-LABlab(27.34, 49.17, -58.76)
CIE-LCHlch(27.34, 76.62, 309.93°)
OKLaboklab(39.6% 0.0748 -0.1686)
OKLCHoklch(39.6% 0.184 293.9)
XYZxyz(9.9940, 5.2164, 32.3720)
Luminance0.0522 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51209D #6C9D20
analogous
#202D9D #51209D #90209D
triadic
#51209D #9D5120 #209D51
tetradic
#51209D #9D202D #6C9D20 #209D90
square
#51209D #9D202D #6C9D20 #209D90
split-complementary
#51209D #9D9020 #2D9D20
monochromatic
#1D0B37 #37166A #51209D #6B2AD0 #8E5ADD

Accessibility & contrast

On white

10.28
#51209D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#51209D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51209D
10.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51209D#FFFFFF#000000##FFFFFF
##51209D1.0010.282.0410.28
#FFFFFF10.281.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042A0
Deuteranopia (green-blind)
#003E9B
Tritanopia (blue-blind)
#3A435E
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #51209d;
/* rgb */ color: rgb(81, 32, 157);
/* oklch */ color: oklch(39.6% 0.184 293.9);
Tailwind
colors: {
  custom: {
    50: '#8a62bb',
    500: '#51209d',
    950: '#000000',
  },
}
SCSS
$custom: #51209d;
$custom-light: #8a62bb;
$custom-dark: #000000;
JSON
{
  "hex": "#51209d",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 157
  },
  "hsl": {
    "h": 263.52,
    "s": 66.138,
    "l": 37.059
  },
  "oklch": {
    "l": 0.39604,
    "c": 0.18445,
    "h": 293.9
  },
  "luminance": 0.05217
}

Semantic roles & 50–950 ramp

primary
#51209D
secondary
#98C157
accent
#E93FA6
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #51209D

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

Preview Lab → · Contrast checker → · Palette generator →

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