#51277F#51277F

#51277F is a dark, vivid violet. Relative luminance 0.047; OKLCH L 37.8% C 0.142 H 301.8°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#51277F
RGBrgb(81, 39, 127)
HSLhsl(269, 53%, 33%)
HSVhsv(269, 69%, 50%)
CMYKcmyk(36.2%, 69.3%, 0%, 50.2%)
CIE-LABlab(25.96, 37.80, -42.41)
CIE-LCHlch(25.96, 56.81, 311.70°)
OKLaboklab(37.83% 0.075 -0.1206)
OKLCHoklch(37.83% 0.142 301.8)
XYZxyz(7.9487, 4.7326, 20.5693)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51277F #557F27
analogous
#27297F #51277F #7D277F
triadic
#51277F #7F5127 #277F51
tetradic
#51277F #7F2729 #557F27 #277F7D
square
#51277F #7F2729 #557F27 #277F7D
split-complementary
#51277F #7F7D27 #297F27
monochromatic
#150A21 #331950 #51277F #6F35AE #8E55CB

Accessibility & contrast

On white

10.79
#51277F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51277F
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51277F#FFFFFF#000000##FFFFFF
##51277F1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D82
Deuteranopia (green-blind)
#003D7D
Tritanopia (blue-blind)
#473B4F
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #51277f;
/* rgb */ color: rgb(81, 39, 127);
/* oklch */ color: oklch(37.8% 0.142 301.8);
Tailwind
colors: {
  custom: {
    50: '#8664a5',
    500: '#51277f',
    950: '#000000',
  },
}
SCSS
$custom: #51277f;
$custom-light: #8664a5;
$custom-dark: #000000;
JSON
{
  "hex": "#51277f",
  "rgb": {
    "r": 81,
    "g": 39,
    "b": 127
  },
  "hsl": {
    "h": 268.636,
    "s": 53.012,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37828,
    "c": 0.14203,
    "h": 301.8
  },
  "luminance": 0.04733
}

Semantic roles & 50–950 ramp

primary
#51277F
secondary
#83B052
accent
#DC4B97
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #51277F

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

Preview Lab → · Contrast checker → · Palette generator →

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