#51328C#51328C

#51328C is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.5% C 0.142 H 295.1°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#51328C
RGBrgb(81, 50, 140)
HSLhsl(261, 47%, 37%)
HSVhsv(261, 64%, 55%)
CMYKcmyk(42.1%, 64.3%, 0%, 45.1%)
CIE-LABlab(29.22, 35.21, -45.25)
CIE-LCHlch(29.22, 57.34, 307.89°)
OKLaboklab(40.49% 0.0605 -0.129)
OKLCHoklch(40.49% 0.143 295.1)
XYZxyz(9.2663, 5.9238, 25.4610)
Luminance0.0592 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51328C #6D8C32
analogous
#32408C #51328C #7E328C
triadic
#51328C #8C5132 #328C51
tetradic
#51328C #8C3240 #6D8C32 #328C7E
square
#51328C #8C3240 #6D8C32 #328C7E
split-complementary
#51328C #8C7E32 #408C32
monochromatic
#1D1232 #37225F #51328C #6B42B9 #8E6DCB

Accessibility & contrast

On white

9.61
#51328C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#51328C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51328C
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51328C#FFFFFF#000000##FFFFFF
##51328C1.009.612.189.61
#FFFFFF9.611.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468F
Deuteranopia (green-blind)
#00438A
Tritanopia (blue-blind)
#42465A
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #51328c;
/* rgb */ color: rgb(81, 50, 140);
/* oklch */ color: oklch(40.5% 0.142 295.1);
Tailwind
colors: {
  custom: {
    50: '#876cae',
    500: '#51328c',
    950: '#000000',
  },
}
SCSS
$custom: #51328c;
$custom-light: #876cae;
$custom-dark: #000000;
JSON
{
  "hex": "#51328c",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 140
  },
  "hsl": {
    "h": 260.667,
    "s": 47.368,
    "l": 37.255
  },
  "oklch": {
    "l": 0.40493,
    "c": 0.1425,
    "h": 295.1
  },
  "luminance": 0.05924
}

Semantic roles & 50–950 ramp

primary
#51328C
secondary
#99B367
accent
#D751A9
background
#F8F6FA
surface
#F0EBF4
border
#CBC6CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #51328C

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

Preview Lab → · Contrast checker → · Palette generator →

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