#51277A#51277A

#51277A is a dark, vivid violet. Relative luminance 0.046; OKLCH L 37.4% C 0.136 H 303.7°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#51277A
RGBrgb(81, 39, 122)
HSLhsl(270, 52%, 32%)
HSVhsv(270, 68%, 48%)
CMYKcmyk(33.6%, 68%, 0%, 52.2%)
CIE-LABlab(25.58, 36.48, -39.87)
CIE-LCHlch(25.58, 54.04, 312.46°)
OKLaboklab(37.44% 0.0755 -0.1132)
OKLCHoklch(37.44% 0.136 303.7)
XYZxyz(7.6309, 4.6055, 18.8955)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51277A #507A27
analogous
#27277A #51277A #7A277A
triadic
#51277A #7A5127 #277A51
tetradic
#51277A #7A2727 #507A27 #277A7A
square
#51277A #7A2727 #507A27 #277A7A
split-complementary
#51277A #7A7A27 #277A27
monochromatic
#13091D #32184C #51277A #7036A8 #8E53C8

Accessibility & contrast

On white

10.93
#51277A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#51277A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51277A
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51277A#FFFFFF#000000##FFFFFF
##51277A1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C7D
Deuteranopia (green-blind)
#0B3C78
Tritanopia (blue-blind)
#49394D
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #51277a;
/* rgb */ color: rgb(81, 39, 122);
/* oklch */ color: oklch(37.4% 0.136 303.7);
Tailwind
colors: {
  custom: {
    50: '#8564a1',
    500: '#51277a',
    950: '#000000',
  },
}
SCSS
$custom: #51277a;
$custom-light: #8564a1;
$custom-dark: #000000;
JSON
{
  "hex": "#51277a",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 122
  },
  "hsl": {
    "h": 270.361,
    "s": 51.553,
    "l": 31.569
  },
  "oklch": {
    "l": 0.37435,
    "c": 0.13605,
    "h": 303.7
  },
  "luminance": 0.04606
}

Semantic roles & 50–950 ramp

primary
#51277A
secondary
#7EAC51
accent
#DB4D93
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0B050F
muted
#7C7A7F

Preview Lab

Preview with #51277A

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

Preview Lab → · Contrast checker → · Palette generator →

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