#51208A#51208A

#51208A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.9% C 0.164 H 299.4°. Best body text is #FFFFFF at 10.92:1 contrast (WCAG AA passes).

Color values

HEX#51208A
RGBrgb(81, 32, 138)
HSLhsl(268, 62%, 33%)
HSVhsv(268, 77%, 54%)
CMYKcmyk(41.3%, 76.8%, 0%, 45.9%)
CIE-LABlab(25.62, 44.19, -49.87)
CIE-LCHlch(25.62, 66.63, 311.54°)
OKLaboklab(37.87% 0.0802 -0.1425)
OKLCHoklch(37.87% 0.164 299.4)
XYZxyz(8.4961, 4.6172, 24.4834)
Luminance0.0462 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51208A #598A20
analogous
#20248A #51208A #86208A
triadic
#51208A #8A5120 #208A51
tetradic
#51208A #8A2024 #598A20 #208A86
square
#51208A #8A2024 #598A20 #208A86
split-complementary
#51208A #8A8620 #248A20
monochromatic
#170927 #341458 #51208A #6E2CBC #8D4ED6

Accessibility & contrast

On white

10.92
#51208A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#51208A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51208A
10.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51208A#FFFFFF#000000##FFFFFF
##51208A1.0010.921.9210.92
#FFFFFF10.921.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8D
Deuteranopia (green-blind)
#003C88
Tritanopia (blue-blind)
#433C54
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #51208a;
/* rgb */ color: rgb(81, 32, 138);
/* oklch */ color: oklch(37.9% 0.164 299.4);
Tailwind
colors: {
  custom: {
    50: '#8861ad',
    500: '#51208a',
    950: '#000000',
  },
}
SCSS
$custom: #51208a;
$custom-light: #8861ad;
$custom-dark: #000000;
JSON
{
  "hex": "#51208a",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 138
  },
  "hsl": {
    "h": 267.736,
    "s": 62.353,
    "l": 33.333
  },
  "oklch": {
    "l": 0.37865,
    "c": 0.16355,
    "h": 299.4
  },
  "luminance": 0.04617
}

Semantic roles & 50–950 ramp

primary
#51208A
secondary
#87B94D
accent
#E5429A
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #51208A

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

Preview Lab → · Contrast checker → · Palette generator →

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