#51397C#51397C

#51397C is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.5% C 0.110 H 297.8°. Best body text is #FFFFFF at 9.43:1 contrast (WCAG AA passes).

Color values

HEX#51397C
RGBrgb(81, 57, 124)
HSLhsl(261, 37%, 35%)
HSVhsv(261, 54%, 49%)
CMYKcmyk(34.7%, 54%, 0%, 51.4%)
CIE-LABlab(29.74, 26.39, -34.45)
CIE-LCHlch(29.74, 43.39, 307.45°)
OKLaboklab(40.52% 0.0514 -0.0973)
OKLCHoklch(40.52% 0.11 297.8)
XYZxyz(8.4937, 6.1307, 19.8007)
Luminance0.0613 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51397C #647C39
analogous
#39427C #51397C #73397C
triadic
#51397C #7C5139 #397C51
tetradic
#51397C #7C3942 #647C39 #397C73
square
#51397C #7C3942 #647C39 #397C73
split-complementary
#51397C #7C7339 #427C39
monochromatic
#1A1228 #362652 #51397C #6C4CA6 #8D71BE

Accessibility & contrast

On white

9.43
#51397C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#51397C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51397C
9.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51397C#FFFFFF#000000##FFFFFF
##51397C1.009.432.239.43
#FFFFFF9.431.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20467E
Deuteranopia (green-blind)
#26457A
Tritanopia (blue-blind)
#484655
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #51397c;
/* rgb */ color: rgb(81, 57, 124);
/* oklch */ color: oklch(40.5% 0.110 297.8);
Tailwind
colors: {
  custom: {
    50: '#8470a2',
    500: '#51397c',
    950: '#000000',
  },
}
SCSS
$custom: #51397c;
$custom-light: #8470a2;
$custom-dark: #000000;
JSON
{
  "hex": "#51397c",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 124
  },
  "hsl": {
    "h": 261.493,
    "s": 37.017,
    "l": 35.49
  },
  "oklch": {
    "l": 0.40523,
    "c": 0.11002,
    "h": 297.8
  },
  "luminance": 0.06131
}

Semantic roles & 50–950 ramp

primary
#51397C
secondary
#91A76A
accent
#CD5BA4
background
#F8F6FA
surface
#EFECF3
border
#CAC7CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #51397C

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

Preview Lab → · Contrast checker → · Palette generator →

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