#51277D#51277D

#51277D is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.7% C 0.140 H 302.6°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#51277D
RGBrgb(81, 39, 125)
HSLhsl(269, 52%, 32%)
HSVhsv(269, 69%, 49%)
CMYKcmyk(35.2%, 68.8%, 0%, 51%)
CIE-LABlab(25.81, 37.27, -41.40)
CIE-LCHlch(25.81, 55.70, 311.99°)
OKLaboklab(37.67% 0.0752 -0.1177)
OKLCHoklch(37.67% 0.14 302.6)
XYZxyz(7.8197, 4.6810, 19.8896)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51277D #537D27
analogous
#27287D #51277D #7C277D
triadic
#51277D #7D5127 #277D51
tetradic
#51277D #7D2728 #537D27 #277D7C
square
#51277D #7D2728 #537D27 #277D7C
split-complementary
#51277D #7D7C27 #287D27
monochromatic
#150A20 #33184E #51277D #6F36AC #8E55CA

Accessibility & contrast

On white

10.85
#51277D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51277D
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51277D#FFFFFF#000000##FFFFFF
##51277D1.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)
#003C80
Deuteranopia (green-blind)
#033D7B
Tritanopia (blue-blind)
#483A4E
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #51277d;
/* rgb */ color: rgb(81, 39, 125);
/* oklch */ color: oklch(37.7% 0.140 302.6);
Tailwind
colors: {
  custom: {
    50: '#8664a3',
    500: '#51277d',
    950: '#000000',
  },
}
SCSS
$custom: #51277d;
$custom-light: #8664a3;
$custom-dark: #000000;
JSON
{
  "hex": "#51277d",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 125
  },
  "hsl": {
    "h": 269.302,
    "s": 52.439,
    "l": 32.157
  },
  "oklch": {
    "l": 0.37669,
    "c": 0.13964,
    "h": 302.6
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#51277D
secondary
#81AF51
accent
#DC4C96
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #51277D

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

Preview Lab → · Contrast checker → · Palette generator →

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