#51206E#51206E

#51206E is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.6% C 0.132 H 310.2°. Best body text is #FFFFFF at 11.79:1 contrast (WCAG AA passes).

Color values

HEX#51206E
RGBrgb(81, 32, 110)
HSLhsl(278, 55%, 28%)
HSVhsv(278, 71%, 43%)
CMYKcmyk(26.4%, 70.9%, 0%, 56.9%)
CIE-LABlab(23.37, 37.11, -35.76)
CIE-LCHlch(23.37, 51.54, 316.06°)
OKLaboklab(35.56% 0.0853 -0.1011)
OKLCHoklch(35.56% 0.132 310.2)
XYZxyz(6.7238, 3.9083, 15.1490)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51206E #3D6E20
analogous
#2A206E #51206E #6E2064
triadic
#51206E #6E5120 #206E51
tetradic
#51206E #6E2A20 #3D6E20 #20646E
square
#51206E #6E2A20 #3D6E20 #20646E
split-complementary
#51206E #646E20 #206E2A
monochromatic
#110718 #2E123F #51206E #742E9D #9541C8

Accessibility & contrast

On white

11.79
#51206E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#51206E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51206E
11.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51206E#FFFFFF#000000##FFFFFF
##51206E1.0011.791.7811.79
#FFFFFF11.791.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#14386C
Tritanopia (blue-blind)
#4D3044
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #51206e;
/* rgb */ color: rgb(81, 32, 110);
/* oklch */ color: oklch(35.6% 0.132 310.2);
Tailwind
colors: {
  custom: {
    50: '#856098',
    500: '#51206e',
    950: '#000000',
  },
}
SCSS
$custom: #51206e;
$custom-light: #856098;
$custom-dark: #000000;
JSON
{
  "hex": "#51206e",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 110
  },
  "hsl": {
    "h": 277.692,
    "s": 54.93,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35563,
    "c": 0.13226,
    "h": 310.2
  },
  "luminance": 0.03908
}

Semantic roles & 50–950 ramp

primary
#51206E
secondary
#69A248
accent
#DE4A81
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #51206E

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

Preview Lab → · Contrast checker → · Palette generator →

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