#51207A#51207A

#51207A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.5% C 0.146 H 305.0°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#51207A
RGBrgb(81, 32, 122)
HSLhsl(273, 58%, 30%)
HSVhsv(273, 74%, 48%)
CMYKcmyk(33.6%, 73.8%, 0%, 52.2%)
CIE-LABlab(24.28, 40.08, -41.97)
CIE-LCHlch(24.28, 58.03, 313.68°)
OKLaboklab(36.51% 0.0837 -0.1193)
OKLCHoklch(36.51% 0.146 305)
XYZxyz(7.4219, 4.1875, 18.8259)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51207A #497A20
analogous
#24207A #51207A #7A2076
triadic
#51207A #7A5120 #207A51
tetradic
#51207A #7A2420 #497A20 #20767A
square
#51207A #7A2420 #497A20 #20767A
split-complementary
#51207A #767A20 #207A24
monochromatic
#110719 #31134A #51207A #712DAA #9046CE

Accessibility & contrast

On white

11.43
#51207A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#51207A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51207A
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51207A#FFFFFF#000000##FFFFFF
##51207A1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51207a;
/* rgb */ color: rgb(81, 32, 122);
/* oklch */ color: oklch(36.5% 0.146 305.0);
Tailwind
colors: {
  custom: {
    50: '#8660a1',
    500: '#51207a',
    950: '#000000',
  },
}
SCSS
$custom: #51207a;
$custom-light: #8660a1;
$custom-dark: #000000;
JSON
{
  "hex": "#51207a",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 122
  },
  "hsl": {
    "h": 272.667,
    "s": 58.442,
    "l": 30.196
  },
  "oklch": {
    "l": 0.36506,
    "c": 0.14571,
    "h": 305
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#51207A
secondary
#76AD49
accent
#E2468D
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #51207A

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

Preview Lab → · Contrast checker → · Palette generator →

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