#51206A#51206A

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

Color values

HEX#51206A
RGBrgb(81, 32, 106)
HSLhsl(280, 54%, 27%)
HSVhsv(280, 70%, 42%)
CMYKcmyk(23.6%, 69.8%, 0%, 58.4%)
CIE-LABlab(23.08, 36.14, -33.64)
CIE-LCHlch(23.08, 49.37, 317.06°)
OKLaboklab(35.26% 0.0857 -0.0948)
OKLCHoklch(35.26% 0.128 312.1)
XYZxyz(6.5109, 3.8231, 14.0278)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51206A #396A20
analogous
#2C206A #51206A #6A205E
triadic
#51206A #6A5120 #206A51
tetradic
#51206A #6A2C20 #396A20 #205E6A
square
#51206A #6A2C20 #396A20 #205E6A
split-complementary
#51206A #5E6A20 #206A2C
monochromatic
#120718 #2D123B #51206A #752E99 #983FC5

Accessibility & contrast

On white

11.90
#51206A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#51206A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51206A
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51206A#FFFFFF#000000##FFFFFF
##51206A1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51206a;
/* rgb */ color: rgb(81, 32, 106);
/* oklch */ color: oklch(35.3% 0.128 312.1);
Tailwind
colors: {
  custom: {
    50: '#855f95',
    500: '#51206a',
    950: '#000000',
  },
}
SCSS
$custom: #51206a;
$custom-light: #855f95;
$custom-dark: #000000;
JSON
{
  "hex": "#51206a",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 106
  },
  "hsl": {
    "h": 279.73,
    "s": 53.623,
    "l": 27.059
  },
  "oklch": {
    "l": 0.35264,
    "c": 0.12779,
    "h": 312.1
  },
  "luminance": 0.03823
}

Semantic roles & 50–950 ramp

primary
#51206A
secondary
#659E48
accent
#DD4B7C
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B050D
muted
#7C797E

Preview Lab

Preview with #51206A

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

Preview Lab → · Contrast checker → · Palette generator →

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