#51397A#51397A

#51397A is a dark, moderate violet. Relative luminance 0.061; OKLCH L 40.4% C 0.107 H 298.5°. Best body text is #FFFFFF at 9.48:1 contrast (WCAG AA passes).

Color values

HEX#51397A
RGBrgb(81, 57, 122)
HSLhsl(262, 36%, 35%)
HSVhsv(262, 53%, 48%)
CMYKcmyk(33.6%, 53.3%, 0%, 52.2%)
CIE-LABlab(29.61, 25.82, -33.39)
CIE-LCHlch(29.61, 42.21, 307.71°)
OKLaboklab(40.39% 0.0512 -0.0942)
OKLCHoklch(40.39% 0.107 298.5)
XYZxyz(8.3685, 6.0806, 19.1414)
Luminance0.0608 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51397A #627A39
analogous
#39417A #51397A #72397A
triadic
#51397A #7A5139 #397A51
tetradic
#51397A #7A3941 #627A39 #397A72
square
#51397A #7A3941 #627A39 #397A72
split-complementary
#51397A #7A7239 #417A39
monochromatic
#1A1227 #352650 #51397A #6D4CA4 #8D71BD

Accessibility & contrast

On white

9.48
#51397A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#51397A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51397A
9.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51397A#FFFFFF#000000##FFFFFF
##51397A1.009.482.229.48
#FFFFFF9.481.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#22467C
Deuteranopia (green-blind)
#284578
Tritanopia (blue-blind)
#484554
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #51397a;
/* rgb */ color: rgb(81, 57, 122);
/* oklch */ color: oklch(40.4% 0.107 298.5);
Tailwind
colors: {
  custom: {
    50: '#8470a1',
    500: '#51397a',
    950: '#000000',
  },
}
SCSS
$custom: #51397a;
$custom-light: #8470a1;
$custom-dark: #000000;
JSON
{
  "hex": "#51397a",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 122
  },
  "hsl": {
    "h": 262.154,
    "s": 36.313,
    "l": 35.098
  },
  "oklch": {
    "l": 0.4039,
    "c": 0.10722,
    "h": 298.5
  },
  "luminance": 0.06081
}

Semantic roles & 50–950 ramp

primary
#51397A
secondary
#8FA669
accent
#CC5BA3
background
#F8F6F9
surface
#EFECF2
border
#CAC7CC
text
#0B070F
muted
#7C7A7E

Preview Lab

Preview with #51397A

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

Preview Lab → · Contrast checker → · Palette generator →

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