#51368C#51368C

#51368C is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.1% C 0.137 H 294.0°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#51368C
RGBrgb(81, 54, 140)
HSLhsl(259, 44%, 38%)
HSVhsv(259, 61%, 55%)
CMYKcmyk(42.1%, 61.4%, 0%, 45.1%)
CIE-LABlab(30.11, 32.84, -43.81)
CIE-LCHlch(30.11, 54.75, 306.85°)
OKLaboklab(41.14% 0.0556 -0.1248)
OKLCHoklch(41.14% 0.137 294)
XYZxyz(9.4449, 6.2809, 25.5206)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51368C #718C36
analogous
#36468C #51368C #7C368C
triadic
#51368C #8C5136 #368C51
tetradic
#51368C #8C3646 #718C36 #368C7C
square
#51368C #8C3646 #718C36 #368C7C
split-complementary
#51368C #8C7C36 #468C36
monochromatic
#1E1434 #372560 #51368C #6B47B8 #8E73C9

Accessibility & contrast

On white

9.31
#51368C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51368C
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51368C#FFFFFF#000000##FFFFFF
##51368C1.009.312.269.31
#FFFFFF9.311.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#07458A
Tritanopia (blue-blind)
#41495B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #51368c;
/* rgb */ color: rgb(81, 54, 140);
/* oklch */ color: oklch(41.1% 0.137 294.0);
Tailwind
colors: {
  custom: {
    50: '#866eae',
    500: '#51368c',
    950: '#000000',
  },
}
SCSS
$custom: #51368c;
$custom-light: #866eae;
$custom-dark: #000000;
JSON
{
  "hex": "#51368c",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 140
  },
  "hsl": {
    "h": 258.837,
    "s": 44.33,
    "l": 38.039
  },
  "oklch": {
    "l": 0.41143,
    "c": 0.13663,
    "h": 294
  },
  "luminance": 0.06281
}

Semantic roles & 50–950 ramp

primary
#51368C
secondary
#9CB26C
accent
#D454AC
background
#F8F6FA
surface
#F0ECF4
border
#CBC7CE
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #51368C

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

Preview Lab → · Contrast checker → · Palette generator →

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