#51317C#51317C

#51317C is a dark, vivid violet. Relative luminance 0.054; OKLCH L 39.1% C 0.123 H 300.5°. Best body text is #FFFFFF at 10.10:1 contrast (WCAG AA passes).

Color values

HEX#51317C
RGBrgb(81, 49, 124)
HSLhsl(266, 43%, 34%)
HSVhsv(266, 60%, 49%)
CMYKcmyk(34.7%, 60.5%, 0%, 51.4%)
CIE-LABlab(27.85, 31.29, -37.48)
CIE-LCHlch(27.85, 48.82, 309.86°)
OKLaboklab(39.13% 0.0625 -0.1062)
OKLCHoklch(39.13% 0.123 300.5)
XYZxyz(8.1289, 5.4011, 19.6791)
Luminance0.0540 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51317C #5C7C31
analogous
#31377C #51317C #77317C
triadic
#51317C #7C5131 #317C51
tetradic
#51317C #7C3137 #5C7C31 #317C77
square
#51317C #7C3137 #5C7C31 #317C77
split-complementary
#51317C #7C7731 #377C31
monochromatic
#180E24 #342050 #51317C #6E42A8 #8D65C2

Accessibility & contrast

On white

10.10
#51317C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.08
#51317C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51317C
10.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51317C#FFFFFF#000000##FFFFFF
##51317C1.0010.102.0810.10
#FFFFFF10.101.0021.001.00
#0000002.0821.001.0021.00
##FFFFFF10.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C417E
Deuteranopia (green-blind)
#1B417A
Tritanopia (blue-blind)
#484051
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #51317c;
/* rgb */ color: rgb(81, 49, 124);
/* oklch */ color: oklch(39.1% 0.123 300.5);
Tailwind
colors: {
  custom: {
    50: '#856aa2',
    500: '#51317c',
    950: '#000000',
  },
}
SCSS
$custom: #51317c;
$custom-light: #856aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#51317c",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 124
  },
  "hsl": {
    "h": 265.6,
    "s": 43.353,
    "l": 33.922
  },
  "oklch": {
    "l": 0.39128,
    "c": 0.1232,
    "h": 300.5
  },
  "luminance": 0.05401
}

Semantic roles & 50–950 ramp

primary
#51317C
secondary
#8AAA5F
accent
#D3559D
background
#F8F6FA
surface
#EFEBF3
border
#CAC6CD
text
#0B060F
muted
#7C7A7F

Preview Lab

Preview with #51317C

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

Preview Lab → · Contrast checker → · Palette generator →

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