#51147A#51147A

#51147A is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.159 H 306.7°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#51147A
RGBrgb(81, 20, 122)
HSLhsl(276, 72%, 28%)
HSVhsv(276, 84%, 48%)
CMYKcmyk(33.6%, 83.6%, 0%, 52.2%)
CIE-LABlab(22.50, 45.19, -44.87)
CIE-LCHlch(22.50, 63.69, 315.20°)
OKLaboklab(35.25% 0.0951 -0.1277)
OKLCHoklch(35.25% 0.159 306.7)
XYZxyz(7.1556, 3.6549, 18.7371)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51147A #3D7A14
analogous
#1E147A #51147A #7A1470
triadic
#51147A #7A5114 #147A51
tetradic
#51147A #7A1E14 #3D7A14 #14707A
square
#51147A #7A1E14 #3D7A14 #14707A
split-complementary
#51147A #707A14 #147A1E
monochromatic
#11041A #2E0B45 #51147A #741DAF #952CDC

Accessibility & contrast

On white

12.13
#51147A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#51147A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51147A
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51147A#FFFFFF#000000##FFFFFF
##51147A1.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003678
Tritanopia (blue-blind)
#4A2F48
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #51147a;
/* rgb */ color: rgb(81, 20, 122);
/* oklch */ color: oklch(35.2% 0.159 306.7);
Tailwind
colors: {
  custom: {
    50: '#875aa1',
    500: '#51147a',
    950: '#000000',
  },
}
SCSS
$custom: #51147a;
$custom-light: #875aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#51147a",
  "rgb": {
    "r": 81,
    "g": 20,
    "b": 122
  },
  "hsl": {
    "h": 275.882,
    "s": 71.831,
    "l": 27.843
  },
  "oklch": {
    "l": 0.35249,
    "c": 0.15926,
    "h": 306.7
  },
  "luminance": 0.03655
}

Semantic roles & 50–950 ramp

primary
#51147A
secondary
#69B03A
accent
#EF3982
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #51147A

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

Preview Lab → · Contrast checker → · Palette generator →

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