#51377C#51377C

#51377C is a dark, moderate violet. Relative luminance 0.059; OKLCH L 40.2% C 0.113 H 298.6°. Best body text is #FFFFFF at 9.60:1 contrast (WCAG AA passes).

Color values

HEX#51377C
RGBrgb(81, 55, 124)
HSLhsl(263, 39%, 35%)
HSVhsv(263, 56%, 49%)
CMYKcmyk(34.7%, 55.6%, 0%, 51.4%)
CIE-LABlab(29.25, 27.63, -35.23)
CIE-LCHlch(29.25, 44.77, 308.11°)
OKLaboklab(40.16% 0.0542 -0.0996)
OKLCHoklch(40.16% 0.113 298.6)
XYZxyz(8.3967, 5.9369, 19.7684)
Luminance0.0594 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51377C #627C37
analogous
#373F7C #51377C #73377C
triadic
#51377C #7C5137 #377C51
tetradic
#51377C #7C373F #627C37 #377C73
square
#51377C #7C373F #627C37 #377C73
split-complementary
#51377C #7C7337 #3F7C37
monochromatic
#1A1127 #352452 #51377C #6D4AA6 #8D6EBF

Accessibility & contrast

On white

9.60
#51377C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#51377C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51377C
9.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51377C#FFFFFF#000000##FFFFFF
##51377C1.009.602.199.60
#FFFFFF9.601.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C457E
Deuteranopia (green-blind)
#23447A
Tritanopia (blue-blind)
#484554
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #51377c;
/* rgb */ color: rgb(81, 55, 124);
/* oklch */ color: oklch(40.2% 0.113 298.6);
Tailwind
colors: {
  custom: {
    50: '#846ea2',
    500: '#51377c',
    950: '#000000',
  },
}
SCSS
$custom: #51377c;
$custom-light: #846ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#51377c",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 124
  },
  "hsl": {
    "h": 262.609,
    "s": 38.547,
    "l": 35.098
  },
  "oklch": {
    "l": 0.40162,
    "c": 0.11337,
    "h": 298.6
  },
  "luminance": 0.05937
}

Semantic roles & 50–950 ramp

primary
#51377C
secondary
#8FA867
accent
#CE59A2
background
#F8F6FA
surface
#EFECF3
border
#CAC7CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #51377C

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

Preview Lab → · Contrast checker → · Palette generator →

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