#51358D#51358D

#51358D is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.1% C 0.139 H 294.0°. Best body text is #FFFFFF at 9.36:1 contrast (WCAG AA passes).

Color values

HEX#51358D
RGBrgb(81, 53, 141)
HSLhsl(259, 45%, 38%)
HSVhsv(259, 62%, 55%)
CMYKcmyk(42.6%, 62.4%, 0%, 44.7%)
CIE-LABlab(29.96, 33.73, -44.68)
CIE-LCHlch(29.96, 55.98, 307.05°)
OKLaboklab(41.05% 0.0568 -0.1273)
OKLCHoklch(41.05% 0.139 294)
XYZxyz(9.4729, 6.2184, 25.8953)
Luminance0.0622 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51358D #718D35
analogous
#35458D #51358D #7D358D
triadic
#51358D #8D5135 #358D51
tetradic
#51358D #8D3545 #718D35 #358D7D
square
#51358D #8D3545 #718D35 #358D7D
split-complementary
#51358D #8D7D35 #458D35
monochromatic
#1E1434 #372461 #51358D #6B46B9 #8E72CA

Accessibility & contrast

On white

9.36
#51358D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#51358D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51358D
9.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51358D#FFFFFF#000000##FFFFFF
##51358D1.009.362.249.36
#FFFFFF9.361.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004790
Deuteranopia (green-blind)
#00458B
Tritanopia (blue-blind)
#41495C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #51358d;
/* rgb */ color: rgb(81, 53, 141);
/* oklch */ color: oklch(41.1% 0.139 294.0);
Tailwind
colors: {
  custom: {
    50: '#866eaf',
    500: '#51358d',
    950: '#000000',
  },
}
SCSS
$custom: #51358d;
$custom-light: #866eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#51358d",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 141
  },
  "hsl": {
    "h": 259.091,
    "s": 45.361,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41054,
    "c": 0.13943,
    "h": 294
  },
  "luminance": 0.06219
}

Semantic roles & 50–950 ramp

primary
#51358D
secondary
#9CB26B
accent
#D553AC
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #51358D

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

Preview Lab → · Contrast checker → · Palette generator →

#51358D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva