#51328F#51328F

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

Color values

HEX#51328F
RGBrgb(81, 50, 143)
HSLhsl(260, 48%, 38%)
HSVhsv(260, 65%, 56%)
CMYKcmyk(43.4%, 65%, 0%, 43.9%)
CIE-LABlab(29.45, 36.07, -46.74)
CIE-LCHlch(29.45, 59.04, 307.66°)
OKLaboklab(40.73% 0.0603 -0.1334)
OKLCHoklch(40.73% 0.146 294.3)
XYZxyz(9.4905, 6.0135, 26.6420)
Luminance0.0601 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51328F #708F32
analogous
#32418F #51328F #7F328F
triadic
#51328F #8F5132 #328F51
tetradic
#51328F #8F3241 #708F32 #328F7F
square
#51328F #8F3241 #708F32 #328F7F
split-complementary
#51328F #8F7F32 #418F32
monochromatic
#1E1234 #372262 #51328F #6B42BC #8E6FCD

Accessibility & contrast

On white

9.53
#51328F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51328F
9.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51328F#FFFFFF#000000##FFFFFF
##51328F1.009.532.209.53
#FFFFFF9.531.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#00448D
Tritanopia (blue-blind)
#40475C
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #51328f;
/* rgb */ color: rgb(81, 50, 143);
/* oklch */ color: oklch(40.7% 0.146 294.3);
Tailwind
colors: {
  custom: {
    50: '#876cb0',
    500: '#51328f',
    950: '#000000',
  },
}
SCSS
$custom: #51328f;
$custom-light: #876cb0;
$custom-dark: #000000;
JSON
{
  "hex": "#51328f",
  "rgb": {
    "r": 81,
    "g": 50,
    "b": 143
  },
  "hsl": {
    "h": 260,
    "s": 48.187,
    "l": 37.843
  },
  "oklch": {
    "l": 0.4073,
    "c": 0.14637,
    "h": 294.3
  },
  "luminance": 0.06014
}

Semantic roles & 50–950 ramp

primary
#51328F
secondary
#9BB468
accent
#D850AB
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #51328F

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

Preview Lab → · Contrast checker → · Palette generator →

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