#51206F#51206F

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

Color values

HEX#51206F
RGBrgb(81, 32, 111)
HSLhsl(277, 55%, 28%)
HSVhsv(277, 71%, 44%)
CMYKcmyk(27%, 71.2%, 0%, 56.5%)
CIE-LABlab(23.44, 37.35, -36.29)
CIE-LCHlch(23.44, 52.08, 315.83°)
OKLaboklab(35.64% 0.0852 -0.1026)
OKLCHoklch(35.64% 0.133 309.7)
XYZxyz(6.7785, 3.9302, 15.4374)
Luminance0.0393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51206F #3E6F20
analogous
#29206F #51206F #6F2065
triadic
#51206F #6F5120 #206F51
tetradic
#51206F #6F2920 #3E6F20 #20656F
square
#51206F #6F2920 #3E6F20 #20656F
split-complementary
#51206F #656F20 #206F29
monochromatic
#110718 #2E123F #51206F #742E9F #9541C8

Accessibility & contrast

On white

11.76
#51206F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#51206F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51206F
11.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51206F#FFFFFF#000000##FFFFFF
##51206F1.0011.761.7911.76
#FFFFFF11.761.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003671
Deuteranopia (green-blind)
#13396D
Tritanopia (blue-blind)
#4D3145
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #51206f;
/* rgb */ color: rgb(81, 32, 111);
/* oklch */ color: oklch(35.6% 0.133 309.7);
Tailwind
colors: {
  custom: {
    50: '#856099',
    500: '#51206f',
    950: '#000000',
  },
}
SCSS
$custom: #51206f;
$custom-light: #856099;
$custom-dark: #000000;
JSON
{
  "hex": "#51206f",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 111
  },
  "hsl": {
    "h": 277.215,
    "s": 55.245,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35639,
    "c": 0.13338,
    "h": 309.7
  },
  "luminance": 0.0393
}

Semantic roles & 50–950 ramp

primary
#51206F
secondary
#6AA348
accent
#DF4982
background
#F8F5F9
surface
#EFEAF2
border
#CAC6CC
text
#0B050E
muted
#7C797E

Preview Lab

Preview with #51206F

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

Preview Lab → · Contrast checker → · Palette generator →

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