#51368E#51368E

#51368E is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.3% C 0.139 H 293.5°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#51368E
RGBrgb(81, 54, 142)
HSLhsl(258, 45%, 38%)
HSVhsv(258, 62%, 56%)
CMYKcmyk(43%, 62%, 0%, 44.3%)
CIE-LABlab(30.26, 33.42, -44.81)
CIE-LCHlch(30.26, 55.90, 306.72°)
OKLaboklab(41.3% 0.0556 -0.1277)
OKLCHoklch(41.3% 0.139 293.5)
XYZxyz(9.5937, 6.3404, 26.3043)
Luminance0.0634 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51368E #738E36
analogous
#36478E #51368E #7D368E
triadic
#51368E #8E5136 #368E51
tetradic
#51368E #8E3647 #738E36 #368E7D
square
#51368E #8E3647 #738E36 #368E7D
split-complementary
#51368E #8E7D36 #478E36
monochromatic
#1E1435 #382562 #51368E #6B48B9 #8F74CA

Accessibility & contrast

On white

9.26
#51368E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#51368E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51368E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51368E#FFFFFF#000000##FFFFFF
##51368E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#01468C
Tritanopia (blue-blind)
#414A5C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #51368e;
/* rgb */ color: rgb(81, 54, 142);
/* oklch */ color: oklch(41.3% 0.139 293.5);
Tailwind
colors: {
  custom: {
    50: '#866eb0',
    500: '#51368e',
    950: '#000000',
  },
}
SCSS
$custom: #51368e;
$custom-light: #866eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#51368e",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 142
  },
  "hsl": {
    "h": 258.409,
    "s": 44.898,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41295,
    "c": 0.13929,
    "h": 293.5
  },
  "luminance": 0.06341
}

Semantic roles & 50–950 ramp

primary
#51368E
secondary
#9DB36D
accent
#D553AD
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #51368E

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

Preview Lab → · Contrast checker → · Palette generator →

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