#51217A#51217A

#51217A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.144 H 304.9°. Best body text is #FFFFFF at 11.36:1 contrast (WCAG AA passes).

Color values

HEX#51217A
RGBrgb(81, 33, 122)
HSLhsl(272, 57%, 30%)
HSVhsv(272, 73%, 48%)
CMYKcmyk(33.6%, 73%, 0%, 52.2%)
CIE-LABlab(24.46, 39.59, -41.69)
CIE-LCHlch(24.46, 57.49, 313.53°)
OKLaboklab(36.63% 0.0826 -0.1185)
OKLCHoklch(36.63% 0.144 304.9)
XYZxyz(7.4493, 4.2422, 18.8350)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51217A #4A7A21
analogous
#25217A #51217A #7A2176
triadic
#51217A #7A5121 #217A51
tetradic
#51217A #7A2521 #4A7A21 #21767A
square
#51217A #7A2521 #4A7A21 #21767A
split-complementary
#51217A #767A21 #217A25
monochromatic
#11071A #31144A #51217A #712EAA #9048CD

Accessibility & contrast

On white

11.36
#51217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#51217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51217A
11.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51217A#FFFFFF#000000##FFFFFF
##51217A1.0011.361.8511.36
#FFFFFF11.361.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003A78
Tritanopia (blue-blind)
#49364B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #51217a;
/* rgb */ color: rgb(81, 33, 122);
/* oklch */ color: oklch(36.6% 0.144 304.9);
Tailwind
colors: {
  custom: {
    50: '#8661a1',
    500: '#51217a',
    950: '#000000',
  },
}
SCSS
$custom: #51217a;
$custom-light: #8661a1;
$custom-dark: #000000;
JSON
{
  "hex": "#51217a",
  "rgb": {
    "r": 81,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 272.36,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36631,
    "c": 0.1444,
    "h": 304.9
  },
  "luminance": 0.04242
}

Semantic roles & 50–950 ramp

primary
#51217A
secondary
#77AD4A
accent
#E1478E
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #51217A

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

Preview Lab → · Contrast checker → · Palette generator →

#51217A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva