#51207E#51207E

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

Color values

HEX#51207E
RGBrgb(81, 32, 126)
HSLhsl(271, 59%, 31%)
HSVhsv(271, 75%, 49%)
CMYKcmyk(35.7%, 74.6%, 0%, 50.6%)
CIE-LABlab(24.60, 41.10, -43.98)
CIE-LCHlch(24.60, 60.19, 313.06°)
OKLaboklab(36.84% 0.0829 -0.1252)
OKLCHoklch(36.84% 0.15 303.5)
XYZxyz(7.6749, 4.2887, 20.1581)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51207E #4D7E20
analogous
#22207E #51207E #7E207C
triadic
#51207E #7E5120 #207E51
tetradic
#51207E #7E2220 #4D7E20 #207C7E
square
#51207E #7E2220 #4D7E20 #207C7E
split-complementary
#51207E #7C7E20 #207E22
monochromatic
#12071C #32144D #51207E #702CAF #8F48D0

Accessibility & contrast

On white

11.30
#51207E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#51207E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51207E
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51207E#FFFFFF#000000##FFFFFF
##51207E1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#003A7C
Tritanopia (blue-blind)
#48374D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #51207e;
/* rgb */ color: rgb(81, 32, 126);
/* oklch */ color: oklch(36.8% 0.150 303.5);
Tailwind
colors: {
  custom: {
    50: '#8660a4',
    500: '#51207e',
    950: '#000000',
  },
}
SCSS
$custom: #51207e;
$custom-light: #8660a4;
$custom-dark: #000000;
JSON
{
  "hex": "#51207e",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 126
  },
  "hsl": {
    "h": 271.277,
    "s": 59.494,
    "l": 30.98
  },
  "oklch": {
    "l": 0.36836,
    "c": 0.15018,
    "h": 303.5
  },
  "luminance": 0.04289
}

Semantic roles & 50–950 ramp

primary
#51207E
secondary
#7BB149
accent
#E34591
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #51207E

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

Preview Lab → · Contrast checker → · Palette generator →

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