#51206D#51206D

#51206D is a dark, vivid violet. Relative luminance 0.039; OKLCH L 35.5% C 0.131 H 310.6°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#51206D
RGBrgb(81, 32, 109)
HSLhsl(278, 55%, 28%)
HSVhsv(278, 71%, 43%)
CMYKcmyk(25.7%, 70.6%, 0%, 57.3%)
CIE-LABlab(23.29, 36.87, -35.23)
CIE-LCHlch(23.29, 51.00, 316.30°)
OKLaboklab(35.49% 0.0854 -0.0995)
OKLCHoklch(35.49% 0.131 310.6)
XYZxyz(6.6696, 3.8866, 14.8639)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51206D #3C6D20
analogous
#2B206D #51206D #6D2062
triadic
#51206D #6D5120 #206D51
tetradic
#51206D #6D2B20 #3C6D20 #20626D
square
#51206D #6D2B20 #3C6D20 #20626D
split-complementary
#51206D #626D20 #206D2B
monochromatic
#120718 #2E123E #51206D #742E9C #9640C7

Accessibility & contrast

On white

11.82
#51206D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51206D
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51206D#FFFFFF#000000##FFFFFF
##51206D1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356F
Deuteranopia (green-blind)
#16386B
Tritanopia (blue-blind)
#4D3043
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #51206d;
/* rgb */ color: rgb(81, 32, 109);
/* oklch */ color: oklch(35.5% 0.131 310.6);
Tailwind
colors: {
  custom: {
    50: '#856097',
    500: '#51206d',
    950: '#000000',
  },
}
SCSS
$custom: #51206d;
$custom-light: #856097;
$custom-dark: #000000;
JSON
{
  "hex": "#51206d",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 109
  },
  "hsl": {
    "h": 278.182,
    "s": 54.61,
    "l": 27.647
  },
  "oklch": {
    "l": 0.35487,
    "c": 0.13114,
    "h": 310.6
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#51206D
secondary
#68A148
accent
#DE4A80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #51206D

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

Preview Lab → · Contrast checker → · Palette generator →

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