#51206B#51206B

#51206B is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.3% C 0.129 H 311.6°. Best body text is #FFFFFF at 11.87:1 contrast (WCAG AA passes).

Color values

HEX#51206B
RGBrgb(81, 32, 107)
HSLhsl(279, 54%, 27%)
HSVhsv(279, 70%, 42%)
CMYKcmyk(24.3%, 70.1%, 0%, 58%)
CIE-LABlab(23.15, 36.38, -34.17)
CIE-LCHlch(23.15, 49.91, 316.80°)
OKLaboklab(35.34% 0.0856 -0.0964)
OKLCHoklch(35.34% 0.129 311.6)
XYZxyz(6.5632, 3.8441, 14.3033)
Luminance0.0384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51206B #3A6B20
analogous
#2C206B #51206B #6B2060
triadic
#51206B #6B5120 #206B51
tetradic
#51206B #6B2C20 #3A6B20 #20606B
square
#51206B #6B2C20 #3A6B20 #20606B
split-complementary
#51206B #606B20 #206B2C
monochromatic
#120718 #2D123C #51206B #752E9A #9740C6

Accessibility & contrast

On white

11.87
#51206B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.77
#51206B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51206B
11.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51206B#FFFFFF#000000##FFFFFF
##51206B1.0011.871.7711.87
#FFFFFF11.871.0021.001.00
#0000001.7721.001.0021.00
##FFFFFF11.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#183869
Tritanopia (blue-blind)
#4E2F42
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #51206b;
/* rgb */ color: rgb(81, 32, 107);
/* oklch */ color: oklch(35.3% 0.129 311.6);
Tailwind
colors: {
  custom: {
    50: '#855f96',
    500: '#51206b',
    950: '#000000',
  },
}
SCSS
$custom: #51206b;
$custom-light: #855f96;
$custom-dark: #000000;
JSON
{
  "hex": "#51206b",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 107
  },
  "hsl": {
    "h": 279.2,
    "s": 53.957,
    "l": 27.255
  },
  "oklch": {
    "l": 0.35338,
    "c": 0.12891,
    "h": 311.6
  },
  "luminance": 0.03844
}

Semantic roles & 50–950 ramp

primary
#51206B
secondary
#669F48
accent
#DD4A7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #51206B

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

Preview Lab → · Contrast checker → · Palette generator →

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