#51328D#51328D

#51328D is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.6% C 0.144 H 294.9°. Best body text is #FFFFFF at 9.59:1 contrast (WCAG AA passes).

Color values

HEX#51328D
RGBrgb(81, 50, 141)
HSLhsl(260, 48%, 37%)
HSVhsv(260, 65%, 55%)
CMYKcmyk(42.6%, 64.5%, 0%, 44.7%)
CIE-LABlab(29.29, 35.50, -45.75)
CIE-LCHlch(29.29, 57.91, 307.81°)
OKLaboklab(40.57% 0.0604 -0.1305)
OKLCHoklch(40.57% 0.144 294.9)
XYZxyz(9.3404, 5.9534, 25.8511)
Luminance0.0595 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51328D #6E8D32
analogous
#32408D #51328D #7F328D
triadic
#51328D #8D5132 #328D51
tetradic
#51328D #8D3240 #6E8D32 #328D7F
square
#51328D #8D3240 #6E8D32 #328D7F
split-complementary
#51328D #8D7F32 #408D32
monochromatic
#1D1233 #372260 #51328D #6B42BA #8E6ECC

Accessibility & contrast

On white

9.59
#51328D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#51328D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51328D
9.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51328D#FFFFFF#000000##FFFFFF
##51328D1.009.592.199.59
#FFFFFF9.591.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004690
Deuteranopia (green-blind)
#00448B
Tritanopia (blue-blind)
#41475A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #51328d;
/* rgb */ color: rgb(81, 50, 141);
/* oklch */ color: oklch(40.6% 0.144 294.9);
Tailwind
colors: {
  custom: {
    50: '#876caf',
    500: '#51328d',
    950: '#000000',
  },
}
SCSS
$custom: #51328d;
$custom-light: #876caf;
$custom-dark: #000000;
JSON
{
  "hex": "#51328d",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 141
  },
  "hsl": {
    "h": 260.44,
    "s": 47.644,
    "l": 37.451
  },
  "oklch": {
    "l": 0.40572,
    "c": 0.14379,
    "h": 294.9
  },
  "luminance": 0.05954
}

Semantic roles & 50–950 ramp

primary
#51328D
secondary
#99B368
accent
#D751A9
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #51328D

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

Preview Lab → · Contrast checker → · Palette generator →

#51328D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva