#51208D#51208D

#51208D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 38.1% C 0.167 H 298.4°. Best body text is #FFFFFF at 10.82:1 contrast (WCAG AA passes).

Color values

HEX#51208D
RGBrgb(81, 32, 141)
HSLhsl(267, 63%, 34%)
HSVhsv(267, 77%, 55%)
CMYKcmyk(42.6%, 77.3%, 0%, 44.7%)
CIE-LABlab(25.88, 44.97, -51.31)
CIE-LCHlch(25.88, 68.22, 311.23°)
OKLaboklab(38.13% 0.0795 -0.1467)
OKLCHoklch(38.13% 0.167 298.4)
XYZxyz(8.7163, 4.7053, 25.6431)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51208D #5C8D20
analogous
#20268D #51208D #88208D
triadic
#51208D #8D5120 #208D51
tetradic
#51208D #8D2026 #5C8D20 #208D88
square
#51208D #8D2026 #5C8D20 #208D88
split-complementary
#51208D #8D8820 #268D20
monochromatic
#180929 #34155B #51208D #6E2BBF #8D50D7

Accessibility & contrast

On white

10.82
#51208D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51208D
10.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51208D#FFFFFF#000000##FFFFFF
##51208D1.0010.821.9410.82
#FFFFFF10.821.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D90
Deuteranopia (green-blind)
#003C8B
Tritanopia (blue-blind)
#423D55
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #51208d;
/* rgb */ color: rgb(81, 32, 141);
/* oklch */ color: oklch(38.1% 0.167 298.4);
Tailwind
colors: {
  custom: {
    50: '#8861af',
    500: '#51208d',
    950: '#000000',
  },
}
SCSS
$custom: #51208d;
$custom-light: #8861af;
$custom-dark: #000000;
JSON
{
  "hex": "#51208d",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 141
  },
  "hsl": {
    "h": 266.972,
    "s": 63.006,
    "l": 33.922
  },
  "oklch": {
    "l": 0.38132,
    "c": 0.16687,
    "h": 298.4
  },
  "luminance": 0.04705
}

Semantic roles & 50–950 ramp

primary
#51208D
secondary
#8ABA4E
accent
#E6429C
background
#F8F5FA
surface
#F0EAF5
border
#CBC6CF
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #51208D

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

Preview Lab → · Contrast checker → · Palette generator →

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