#51316A#51316A

#51316A is a dark, moderate violet. Relative luminance 0.050; OKLCH L 37.9% C 0.099 H 308.3°. Best body text is #FFFFFF at 10.51:1 contrast (WCAG AA passes).

Color values

HEX#51316A
RGBrgb(81, 49, 106)
HSLhsl(274, 37%, 30%)
HSVhsv(274, 54%, 42%)
CMYKcmyk(23.6%, 53.8%, 0%, 58.4%)
CIE-LABlab(26.70, 26.47, -27.86)
CIE-LCHlch(26.70, 38.43, 313.53°)
OKLaboklab(37.91% 0.0616 -0.078)
OKLCHoklch(37.91% 0.099 308.3)
XYZxyz(7.0927, 4.9867, 14.2218)
Luminance0.0499 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51316A #4A6A31
analogous
#34316A #51316A #6A3166
triadic
#51316A #6A5131 #316A51
tetradic
#51316A #6A3431 #4A6A31 #31666A
square
#51316A #6A3431 #4A6A31 #31666A
split-complementary
#51316A #666A31 #316A34
monochromatic
#110A16 #311E40 #51316A #714494 #9060B5

Accessibility & contrast

On white

10.51
#51316A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.00
#51316A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51316A
10.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51316A#FFFFFF#000000##FFFFFF
##51316A1.0010.512.0010.51
#FFFFFF10.511.0021.001.00
#0000002.0021.001.0021.00
##FFFFFF10.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#213E6C
Deuteranopia (green-blind)
#2B4069
Tritanopia (blue-blind)
#4D3B48
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #51316a;
/* rgb */ color: rgb(81, 49, 106);
/* oklch */ color: oklch(37.9% 0.099 308.3);
Tailwind
colors: {
  custom: {
    50: '#836a95',
    500: '#51316a',
    950: '#000000',
  },
}
SCSS
$custom: #51316a;
$custom-light: #836a95;
$custom-dark: #000000;
JSON
{
  "hex": "#51316a",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 106
  },
  "hsl": {
    "h": 273.684,
    "s": 36.774,
    "l": 30.392
  },
  "oklch": {
    "l": 0.37908,
    "c": 0.0994,
    "h": 308.3
  },
  "luminance": 0.04987
}

Semantic roles & 50–950 ramp

primary
#51316A
secondary
#779B5C
accent
#CD5B8D
background
#F8F6F9
surface
#EFEBF1
border
#CAC6CB
text
#0B060D
muted
#7C7A7E

Preview Lab

Preview with #51316A

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

Preview Lab → · Contrast checker → · Palette generator →

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