#51357B#51357B

#51357B is a dark, moderate violet. Relative luminance 0.057; OKLCH L 39.7% C 0.115 H 299.6°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#51357B
RGBrgb(81, 53, 123)
HSLhsl(264, 40%, 35%)
HSVhsv(264, 57%, 48%)
CMYKcmyk(34.1%, 56.9%, 0%, 51.8%)
CIE-LABlab(28.71, 28.59, -35.47)
CIE-LCHlch(28.71, 45.55, 308.87°)
OKLaboklab(39.74% 0.057 -0.1003)
OKLCHoklch(39.74% 0.115 299.6)
XYZxyz(8.2407, 5.7255, 19.4060)
Luminance0.0573 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51357B #5F7B35
analogous
#353C7B #51357B #74357B
triadic
#51357B #7B5135 #357B51
tetradic
#51357B #7B353C #5F7B35 #357B74
square
#51357B #7B353C #5F7B35 #357B74
split-complementary
#51357B #7B7435 #3C7B35
monochromatic
#191025 #352350 #51357B #6D47A6 #8D6BBF

Accessibility & contrast

On white

9.79
#51357B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#51357B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51357B
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51357B#FFFFFF#000000##FFFFFF
##51357B1.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#19447D
Deuteranopia (green-blind)
#224379
Tritanopia (blue-blind)
#484352
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #51357b;
/* rgb */ color: rgb(81, 53, 123);
/* oklch */ color: oklch(39.7% 0.115 299.6);
Tailwind
colors: {
  custom: {
    50: '#856da2',
    500: '#51357b',
    950: '#000000',
  },
}
SCSS
$custom: #51357b;
$custom-light: #856da2;
$custom-dark: #000000;
JSON
{
  "hex": "#51357b",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 123
  },
  "hsl": {
    "h": 264,
    "s": 39.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.39739,
    "c": 0.11533,
    "h": 299.6
  },
  "luminance": 0.05726
}

Semantic roles & 50–950 ramp

primary
#51357B
secondary
#8DA864
accent
#D058A0
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B070F
muted
#7C7A7F

Preview Lab

Preview with #51357B

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

Preview Lab → · Contrast checker → · Palette generator →

#51357B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva