#51208B#51208B

#51208B is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.165 H 299.1°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#51208B
RGBrgb(81, 32, 139)
HSLhsl(267, 63%, 34%)
HSVhsv(267, 77%, 55%)
CMYKcmyk(41.7%, 77%, 0%, 45.5%)
CIE-LABlab(25.70, 44.45, -50.35)
CIE-LCHlch(25.70, 67.16, 311.44°)
OKLaboklab(37.95% 0.08 -0.1439)
OKLCHoklch(37.95% 0.165 299.1)
XYZxyz(8.5689, 4.6463, 24.8665)
Luminance0.0465 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51208B #5A8B20
analogous
#20248B #51208B #86208B
triadic
#51208B #8B5120 #208B51
tetradic
#51208B #8B2024 #5A8B20 #208B86
square
#51208B #8B2024 #5A8B20 #208B86
split-complementary
#51208B #8B8620 #248B20
monochromatic
#170928 #341559 #51208B #6E2BBD #8D4FD6

Accessibility & contrast

On white

10.89
#51208B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#51208B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51208B
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51208B#FFFFFF#000000##FFFFFF
##51208B1.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51208b;
/* rgb */ color: rgb(81, 32, 139);
/* oklch */ color: oklch(38.0% 0.165 299.1);
Tailwind
colors: {
  custom: {
    50: '#8861ae',
    500: '#51208b',
    950: '#000000',
  },
}
SCSS
$custom: #51208b;
$custom-light: #8861ae;
$custom-dark: #000000;
JSON
{
  "hex": "#51208b",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 139
  },
  "hsl": {
    "h": 267.477,
    "s": 62.573,
    "l": 33.529
  },
  "oklch": {
    "l": 0.37954,
    "c": 0.16465,
    "h": 299.1
  },
  "luminance": 0.04646
}

Semantic roles & 50–950 ramp

primary
#51208B
secondary
#88BA4D
accent
#E6429B
background
#F8F5FA
surface
#F0EAF4
border
#CBC6CE
text
#0C0510
muted
#7D797F

Preview Lab

Preview with #51208B

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

Preview Lab → · Contrast checker → · Palette generator →

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