#51328E#51328E

#51328E is a dark, vivid violet. Relative luminance 0.060; OKLCH L 40.7% C 0.145 H 294.6°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#51328E
RGBrgb(81, 50, 142)
HSLhsl(260, 48%, 38%)
HSVhsv(260, 65%, 56%)
CMYKcmyk(43%, 64.8%, 0%, 44.3%)
CIE-LABlab(29.37, 35.79, -46.24)
CIE-LCHlch(29.37, 58.47, 307.74°)
OKLaboklab(40.65% 0.0604 -0.1319)
OKLCHoklch(40.65% 0.145 294.6)
XYZxyz(9.4151, 5.9833, 26.2448)
Luminance0.0598 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51328E #6F8E32
analogous
#32418E #51328E #7F328E
triadic
#51328E #8E5132 #328E51
tetradic
#51328E #8E3241 #6F8E32 #328E7F
square
#51328E #8E3241 #6F8E32 #328E7F
split-complementary
#51328E #8E7F32 #418E32
monochromatic
#1D1233 #372261 #51328E #6B42BB #8E6ECC

Accessibility & contrast

On white

9.56
#51328E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#51328E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51328E
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51328E#FFFFFF#000000##FFFFFF
##51328E1.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51328e;
/* rgb */ color: rgb(81, 50, 142);
/* oklch */ color: oklch(40.7% 0.145 294.6);
Tailwind
colors: {
  custom: {
    50: '#876cb0',
    500: '#51328e',
    950: '#000000',
  },
}
SCSS
$custom: #51328e;
$custom-light: #876cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#51328e",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 142
  },
  "hsl": {
    "h": 260.217,
    "s": 47.917,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40651,
    "c": 0.14509,
    "h": 294.6
  },
  "luminance": 0.05984
}

Semantic roles & 50–950 ramp

primary
#51328E
secondary
#9AB468
accent
#D850AA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #51328E

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

Preview Lab → · Contrast checker → · Palette generator →

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