#51208F#51208F

#51208F is a dark, vivid violet. Relative luminance 0.048; OKLCH L 38.3% C 0.169 H 297.8°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#51208F
RGBrgb(81, 32, 143)
HSLhsl(266, 63%, 34%)
HSVhsv(266, 78%, 56%)
CMYKcmyk(43.4%, 77.6%, 0%, 43.9%)
CIE-LABlab(26.06, 45.49, -52.26)
CIE-LCHlch(26.06, 69.28, 311.04°)
OKLaboklab(38.31% 0.0789 -0.1495)
OKLCHoklch(38.31% 0.169 297.8)
XYZxyz(8.8665, 4.7654, 26.4339)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51208F #5E8F20
analogous
#20278F #51208F #89208F
triadic
#51208F #8F5120 #208F51
tetradic
#51208F #8F2027 #5E8F20 #208F89
square
#51208F #8F2027 #5E8F20 #208F89
split-complementary
#51208F #8F8920 #278F20
monochromatic
#180A2B #35155D #51208F #6D2BC1 #8D51D8

Accessibility & contrast

On white

10.75
#51208F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#51208F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51208F
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51208F#FFFFFF#000000##FFFFFF
##51208F1.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E92
Deuteranopia (green-blind)
#003C8D
Tritanopia (blue-blind)
#413E56
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #51208f;
/* rgb */ color: rgb(81, 32, 143);
/* oklch */ color: oklch(38.3% 0.169 297.8);
Tailwind
colors: {
  custom: {
    50: '#8861b1',
    500: '#51208f',
    950: '#000000',
  },
}
SCSS
$custom: #51208f;
$custom-light: #8861b1;
$custom-dark: #000000;
JSON
{
  "hex": "#51208f",
  "rgb": {
    "r": 81,
    "g": 32,
    "b": 143
  },
  "hsl": {
    "h": 266.486,
    "s": 63.429,
    "l": 34.314
  },
  "oklch": {
    "l": 0.38311,
    "c": 0.16908,
    "h": 297.8
  },
  "luminance": 0.04766
}

Semantic roles & 50–950 ramp

primary
#51208F
secondary
#8CBB4F
accent
#E6419E
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #51208F

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

Preview Lab → · Contrast checker → · Palette generator →

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