#51368F#51368F

#51368F is a dark, vivid violet. Relative luminance 0.064; OKLCH L 41.4% C 0.141 H 293.2°. Best body text is #FFFFFF at 9.23:1 contrast (WCAG AA passes).

Color values

HEX#51368F
RGBrgb(81, 54, 143)
HSLhsl(258, 45%, 39%)
HSVhsv(258, 62%, 56%)
CMYKcmyk(43.4%, 62.2%, 0%, 43.9%)
CIE-LABlab(30.33, 33.72, -45.31)
CIE-LCHlch(30.33, 56.48, 306.65°)
OKLaboklab(41.37% 0.0555 -0.1292)
OKLCHoklch(41.37% 0.141 293.2)
XYZxyz(9.6691, 6.3706, 26.7015)
Luminance0.0637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51368F #748F36
analogous
#36478F #51368F #7D368F
triadic
#51368F #8F5136 #368F51
tetradic
#51368F #8F3647 #748F36 #368F7D
square
#51368F #8F3647 #748F36 #368F7D
split-complementary
#51368F #8F7D36 #478F36
monochromatic
#1F1436 #382563 #51368F #6B48BA #8F75CB

Accessibility & contrast

On white

9.23
#51368F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #51368F
9.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51368F#FFFFFF#000000##FFFFFF
##51368F1.009.232.279.23
#FFFFFF9.231.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00468D
Tritanopia (blue-blind)
#404A5D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #51368f;
/* rgb */ color: rgb(81, 54, 143);
/* oklch */ color: oklch(41.4% 0.141 293.2);
Tailwind
colors: {
  custom: {
    50: '#876eb0',
    500: '#51368f',
    950: '#000000',
  },
}
SCSS
$custom: #51368f;
$custom-light: #876eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#51368f",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 143
  },
  "hsl": {
    "h": 258.202,
    "s": 45.178,
    "l": 38.627
  },
  "oklch": {
    "l": 0.41372,
    "c": 0.14061,
    "h": 293.2
  },
  "luminance": 0.06371
}

Semantic roles & 50–950 ramp

primary
#51368F
secondary
#9EB36D
accent
#D553AD
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #51368F

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

Preview Lab → · Contrast checker → · Palette generator →

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