#51207D#51207D

#51207D is a dark, vivid violet. Relative luminance 0.043; OKLCH L 36.8% C 0.149 H 303.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#51207D
RGBrgb(81, 32, 125)
HSLhsl(272, 59%, 31%)
HSVhsv(272, 74%, 49%)
CMYKcmyk(35.2%, 74.4%, 0%, 51%)
CIE-LABlab(24.52, 40.84, -43.48)
CIE-LCHlch(24.52, 59.66, 313.21°)
OKLaboklab(36.75% 0.0831 -0.1237)
OKLCHoklch(36.75% 0.149 303.9)
XYZxyz(7.6107, 4.2630, 19.8200)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51207D #4C7D20
analogous
#22207D #51207D #7D207A
triadic
#51207D #7D5120 #207D51
tetradic
#51207D #7D2220 #4C7D20 #207A7D
square
#51207D #7D2220 #4C7D20 #207A7D
split-complementary
#51207D #7A7D20 #207D22
monochromatic
#12071C #31144C #51207D #712CAE #8F47D0

Accessibility & contrast

On white

11.34
#51207D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#51207D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51207D
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51207D#FFFFFF#000000##FFFFFF
##51207D1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003980
Deuteranopia (green-blind)
#003A7B
Tritanopia (blue-blind)
#48364C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #51207d;
/* rgb */ color: rgb(81, 32, 125);
/* oklch */ color: oklch(36.8% 0.149 303.9);
Tailwind
colors: {
  custom: {
    50: '#8660a3',
    500: '#51207d',
    950: '#000000',
  },
}
SCSS
$custom: #51207d;
$custom-light: #8660a3;
$custom-dark: #000000;
JSON
{
  "hex": "#51207d",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 125
  },
  "hsl": {
    "h": 271.613,
    "s": 59.236,
    "l": 30.784
  },
  "oklch": {
    "l": 0.36753,
    "c": 0.14906,
    "h": 303.9
  },
  "luminance": 0.04263
}

Semantic roles & 50–950 ramp

primary
#51207D
secondary
#7AB049
accent
#E24590
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #51207D

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

Preview Lab → · Contrast checker → · Palette generator →

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