#51207B#51207B

#51207B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.6% C 0.147 H 304.7°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#51207B
RGBrgb(81, 32, 123)
HSLhsl(272, 59%, 30%)
HSVhsv(272, 74%, 48%)
CMYKcmyk(34.1%, 74%, 0%, 51.8%)
CIE-LABlab(24.36, 40.33, -42.47)
CIE-LCHlch(24.36, 58.57, 313.52°)
OKLaboklab(36.59% 0.0835 -0.1208)
OKLCHoklch(36.59% 0.147 304.7)
XYZxyz(7.4842, 4.2125, 19.1539)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51207B #4A7B20
analogous
#24207B #51207B #7B2077
triadic
#51207B #7B5120 #207B51
tetradic
#51207B #7B2420 #4A7B20 #20777B
square
#51207B #7B2420 #4A7B20 #20777B
split-complementary
#51207B #777B20 #207B24
monochromatic
#11071A #31134A #51207B #712DAC #9046CF

Accessibility & contrast

On white

11.40
#51207B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51207B
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51207B#FFFFFF#000000##FFFFFF
##51207B1.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397E
Deuteranopia (green-blind)
#003A79
Tritanopia (blue-blind)
#49354B
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #51207b;
/* rgb */ color: rgb(81, 32, 123);
/* oklch */ color: oklch(36.6% 0.147 304.7);
Tailwind
colors: {
  custom: {
    50: '#8660a2',
    500: '#51207b',
    950: '#000000',
  },
}
SCSS
$custom: #51207b;
$custom-light: #8660a2;
$custom-dark: #000000;
JSON
{
  "hex": "#51207b",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 123
  },
  "hsl": {
    "h": 272.308,
    "s": 58.71,
    "l": 30.392
  },
  "oklch": {
    "l": 0.36588,
    "c": 0.14682,
    "h": 304.7
  },
  "luminance": 0.04212
}

Semantic roles & 50–950 ramp

primary
#51207B
secondary
#77AE49
accent
#E2468E
background
#F8F5FA
surface
#F0EAF3
border
#CBC6CD
text
#0C050F
muted
#7D797F

Preview Lab

Preview with #51207B

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

Preview Lab → · Contrast checker → · Palette generator →

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