#51207C#51207C

#51207C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.148 H 304.3°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).

Color values

HEX#51207C
RGBrgb(81, 32, 124)
HSLhsl(272, 59%, 31%)
HSVhsv(272, 74%, 49%)
CMYKcmyk(34.7%, 74.2%, 0%, 51.4%)
CIE-LABlab(24.44, 40.59, -42.98)
CIE-LCHlch(24.44, 59.11, 313.36°)
OKLaboklab(36.67% 0.0833 -0.1223)
OKLCHoklch(36.67% 0.148 304.3)
XYZxyz(7.5471, 4.2376, 19.4852)
Luminance0.0424 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51207C #4B7C20
analogous
#23207C #51207C #7C2079
triadic
#51207C #7C5120 #207C51
tetradic
#51207C #7C2320 #4B7C20 #20797C
square
#51207C #7C2320 #4B7C20 #20797C
split-complementary
#51207C #797C20 #207C23
monochromatic
#11071B #31134B #51207C #712DAD #9047CF

Accessibility & contrast

On white

11.37
#51207C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51207C
11.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51207C#FFFFFF#000000##FFFFFF
##51207C1.0011.371.8511.37
#FFFFFF11.371.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397F
Deuteranopia (green-blind)
#003A7A
Tritanopia (blue-blind)
#49364C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #51207c;
/* rgb */ color: rgb(81, 32, 124);
/* oklch */ color: oklch(36.7% 0.148 304.3);
Tailwind
colors: {
  custom: {
    50: '#8660a3',
    500: '#51207c',
    950: '#000000',
  },
}
SCSS
$custom: #51207c;
$custom-light: #8660a3;
$custom-dark: #000000;
JSON
{
  "hex": "#51207c",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 124
  },
  "hsl": {
    "h": 271.957,
    "s": 58.974,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3667,
    "c": 0.14794,
    "h": 304.3
  },
  "luminance": 0.04238
}

Semantic roles & 50–950 ramp

primary
#51207C
secondary
#79AF49
accent
#E2468F
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #51207C

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

Preview Lab → · Contrast checker → · Palette generator →

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