#51318E#51318E

#51318E is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.146 H 294.8°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).

Color values

HEX#51318E
RGBrgb(81, 49, 142)
HSLhsl(261, 49%, 37%)
HSVhsv(261, 65%, 56%)
CMYKcmyk(43%, 65.5%, 0%, 44.3%)
CIE-LABlab(29.16, 36.37, -46.59)
CIE-LCHlch(29.16, 59.10, 307.97°)
OKLaboklab(40.49% 0.0615 -0.133)
OKLCHoklch(40.49% 0.147 294.8)
XYZxyz(9.3728, 5.8987, 26.2307)
Luminance0.0590 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51318E #6E8E31
analogous
#31408E #51318E #7F318E
triadic
#51318E #8E5131 #318E51
tetradic
#51318E #8E3140 #6E8E31 #318E7F
square
#51318E #8E3140 #6E8E31 #318E7F
split-complementary
#51318E #8E7F31 #408E31
monochromatic
#1D1233 #372161 #51318E #6B41BB #8E6DCD

Accessibility & contrast

On white

9.63
#51318E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#51318E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51318E
9.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51318E#FFFFFF#000000##FFFFFF
##51318E1.009.632.189.63
#FFFFFF9.631.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004691
Deuteranopia (green-blind)
#00438C
Tritanopia (blue-blind)
#41465B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #51318e;
/* rgb */ color: rgb(81, 49, 142);
/* oklch */ color: oklch(40.5% 0.146 294.8);
Tailwind
colors: {
  custom: {
    50: '#876bb0',
    500: '#51318e',
    950: '#000000',
  },
}
SCSS
$custom: #51318e;
$custom-light: #876bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#51318e",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 142
  },
  "hsl": {
    "h": 260.645,
    "s": 48.691,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40495,
    "c": 0.1465,
    "h": 294.8
  },
  "luminance": 0.05899
}

Semantic roles & 50–950 ramp

primary
#51318E
secondary
#99B467
accent
#D850A9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #51318E

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

Preview Lab → · Contrast checker → · Palette generator →

#51318E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva