#51209B#51209B

#51209B is a dark, vivid violet. Relative luminance 0.051; OKLCH L 39.4% C 0.182 H 294.5°. Best body text is #FFFFFF at 10.35:1 contrast (WCAG AA passes).

Color values

HEX#51209B
RGBrgb(81, 32, 155)
HSLhsl(264, 66%, 37%)
HSVhsv(264, 79%, 61%)
CMYKcmyk(47.7%, 79.4%, 0%, 39.2%)
CIE-LABlab(27.15, 48.65, -57.84)
CIE-LCHlch(27.15, 75.58, 310.06°)
OKLaboklab(39.42% 0.0755 -0.1659)
OKLCHoklch(39.42% 0.182 294.5)
XYZxyz(9.8246, 5.1486, 31.4801)
Luminance0.0515 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51209B #6A9B20
analogous
#202D9B #51209B #8F209B
triadic
#51209B #9B5120 #209B51
tetradic
#51209B #9B202D #6A9B20 #209B8F
square
#51209B #9B202D #6A9B20 #209B8F
split-complementary
#51209B #9B8F20 #2D9B20
monochromatic
#1C0B36 #361668 #51209B #6C2ACE #8D59DD

Accessibility & contrast

On white

10.35
#51209B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.03
#51209B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51209B
10.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51209B#FFFFFF#000000##FFFFFF
##51209B1.0010.352.0310.35
#FFFFFF10.351.0021.001.00
#0000002.0321.001.0021.00
##FFFFFF10.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00419E
Deuteranopia (green-blind)
#003E99
Tritanopia (blue-blind)
#3B435D
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #51209b;
/* rgb */ color: rgb(81, 32, 155);
/* oklch */ color: oklch(39.4% 0.182 294.5);
Tailwind
colors: {
  custom: {
    50: '#8a62ba',
    500: '#51209b',
    950: '#000000',
  },
}
SCSS
$custom: #51209b;
$custom-light: #8a62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51209b",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 155
  },
  "hsl": {
    "h": 263.902,
    "s": 65.775,
    "l": 36.667
  },
  "oklch": {
    "l": 0.39416,
    "c": 0.18227,
    "h": 294.5
  },
  "luminance": 0.05149
}

Semantic roles & 50–950 ramp

primary
#51209B
secondary
#96C156
accent
#E93FA5
background
#F8F6FB
surface
#F0EBF6
border
#CBC6D0
text
#0D0512
muted
#7D7A81

Preview Lab

Preview with #51209B

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

Preview Lab → · Contrast checker → · Palette generator →

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