#51368D#51368D

#51368D is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.2% C 0.138 H 293.8°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#51368D
RGBrgb(81, 54, 141)
HSLhsl(259, 45%, 38%)
HSVhsv(259, 62%, 55%)
CMYKcmyk(42.6%, 61.7%, 0%, 44.7%)
CIE-LABlab(30.18, 33.13, -44.31)
CIE-LCHlch(30.18, 55.33, 306.78°)
OKLaboklab(41.22% 0.0556 -0.1263)
OKLCHoklch(41.22% 0.138 293.8)
XYZxyz(9.5189, 6.3105, 25.9107)
Luminance0.0631 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51368D #728D36
analogous
#36468D #51368D #7C368D
triadic
#51368D #8D5136 #368D51
tetradic
#51368D #8D3646 #728D36 #368D7C
square
#51368D #8D3646 #728D36 #368D7C
split-complementary
#51368D #8D7C36 #468D36
monochromatic
#1E1434 #382561 #51368D #6B47B9 #8E74CA

Accessibility & contrast

On white

9.28
#51368D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#51368D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51368D
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51368D#FFFFFF#000000##FFFFFF
##51368D1.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #51368d;
/* rgb */ color: rgb(81, 54, 141);
/* oklch */ color: oklch(41.2% 0.138 293.8);
Tailwind
colors: {
  custom: {
    50: '#866eaf',
    500: '#51368d',
    950: '#000000',
  },
}
SCSS
$custom: #51368d;
$custom-light: #866eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#51368d",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 141
  },
  "hsl": {
    "h": 258.621,
    "s": 44.615,
    "l": 38.235
  },
  "oklch": {
    "l": 0.41219,
    "c": 0.13796,
    "h": 293.8
  },
  "luminance": 0.06311
}

Semantic roles & 50–950 ramp

primary
#51368D
secondary
#9DB26D
accent
#D453AC
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #51368D

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

Preview Lab → · Contrast checker → · Palette generator →

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