#51208C#51208C

#51208C is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.0% C 0.166 H 298.7°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#51208C
RGBrgb(81, 32, 140)
HSLhsl(267, 63%, 34%)
HSVhsv(267, 77%, 55%)
CMYKcmyk(42.1%, 77.1%, 0%, 45.1%)
CIE-LABlab(25.79, 44.71, -50.83)
CIE-LCHlch(25.79, 67.69, 311.33°)
OKLaboklab(38.04% 0.0797 -0.1453)
OKLCHoklch(38.04% 0.166 298.7)
XYZxyz(8.6423, 4.6757, 25.2530)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51208C #5B8C20
analogous
#20258C #51208C #87208C
triadic
#51208C #8C5120 #208C51
tetradic
#51208C #8C2025 #5B8C20 #208C87
square
#51208C #8C2025 #5B8C20 #208C87
split-complementary
#51208C #8C8720 #258C20
monochromatic
#170928 #34155A #51208C #6E2BBE #8D50D7

Accessibility & contrast

On white

10.85
#51208C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#51208C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51208C
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51208C#FFFFFF#000000##FFFFFF
##51208C1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D8F
Deuteranopia (green-blind)
#003C8A
Tritanopia (blue-blind)
#433C55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #51208c;
/* rgb */ color: rgb(81, 32, 140);
/* oklch */ color: oklch(38.0% 0.166 298.7);
Tailwind
colors: {
  custom: {
    50: '#8861ae',
    500: '#51208c',
    950: '#000000',
  },
}
SCSS
$custom: #51208c;
$custom-light: #8861ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51208c",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 140
  },
  "hsl": {
    "h": 267.222,
    "s": 62.791,
    "l": 33.725
  },
  "oklch": {
    "l": 0.38043,
    "c": 0.16576,
    "h": 298.7
  },
  "luminance": 0.04676
}

Semantic roles & 50–950 ramp

primary
#51208C
secondary
#89BA4E
accent
#E6429B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #51208C

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

Preview Lab → · Contrast checker → · Palette generator →

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