#51209C#51209C

#51209C is a dark, vivid violet. Relative luminance 0.052; OKLCH L 39.5% C 0.183 H 294.2°. Best body text is #FFFFFF at 10.31:1 contrast (WCAG AA passes).

Color values

HEX#51209C
RGBrgb(81, 32, 156)
HSLhsl(264, 66%, 37%)
HSVhsv(264, 79%, 61%)
CMYKcmyk(48.1%, 79.5%, 0%, 38.8%)
CIE-LABlab(27.25, 48.91, -58.30)
CIE-LCHlch(27.25, 76.10, 309.99°)
OKLaboklab(39.51% 0.0752 -0.1673)
OKLCHoklch(39.51% 0.183 294.2)
XYZxyz(9.9090, 5.1824, 31.9242)
Luminance0.0518 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51209C #6B9C20
analogous
#202D9C #51209C #8F209C
triadic
#51209C #9C5120 #209C51
tetradic
#51209C #9C202D #6B9C20 #209C8F
square
#51209C #9C202D #6B9C20 #209C8F
split-complementary
#51209C #9C8F20 #2D9C20
monochromatic
#1C0B36 #371669 #51209C #6B2ACF #8D59DD

Accessibility & contrast

On white

10.31
#51209C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51209C
10.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51209C#FFFFFF#000000##FFFFFF
##51209C1.0010.312.0410.31
#FFFFFF10.311.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00429F
Deuteranopia (green-blind)
#003E9A
Tritanopia (blue-blind)
#3A435E
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #51209c;
/* rgb */ color: rgb(81, 32, 156);
/* oklch */ color: oklch(39.5% 0.183 294.2);
Tailwind
colors: {
  custom: {
    50: '#8a62ba',
    500: '#51209c',
    950: '#000000',
  },
}
SCSS
$custom: #51209c;
$custom-light: #8a62ba;
$custom-dark: #000000;
JSON
{
  "hex": "#51209c",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 156
  },
  "hsl": {
    "h": 263.71,
    "s": 65.957,
    "l": 36.863
  },
  "oklch": {
    "l": 0.3951,
    "c": 0.18337,
    "h": 294.2
  },
  "luminance": 0.05183
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #51209C

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

Preview Lab → · Contrast checker → · Palette generator →

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