#51318F#51318F

#51318F is a dark, vivid violet. Relative luminance 0.059; OKLCH L 40.6% C 0.148 H 294.6°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#51318F
RGBrgb(81, 49, 143)
HSLhsl(260, 49%, 38%)
HSVhsv(260, 66%, 56%)
CMYKcmyk(43.4%, 65.7%, 0%, 43.9%)
CIE-LABlab(29.23, 36.65, -47.08)
CIE-LCHlch(29.23, 59.67, 307.90°)
OKLaboklab(40.58% 0.0614 -0.1344)
OKLCHoklch(40.58% 0.148 294.6)
XYZxyz(9.4483, 5.9289, 26.6279)
Luminance0.0593 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51318F #6F8F31
analogous
#31408F #51318F #80318F
triadic
#51318F #8F5131 #318F51
tetradic
#51318F #8F3140 #6F8F31 #318F80
square
#51318F #8F3140 #6F8F31 #318F80
split-complementary
#51318F #8F8031 #408F31
monochromatic
#1D1234 #372161 #51318F #6B41BD #8E6DCD

Accessibility & contrast

On white

9.61
#51318F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#51318F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51318F
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51318F#FFFFFF#000000##FFFFFF
##51318F1.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#00438D
Tritanopia (blue-blind)
#40475B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #51318f;
/* rgb */ color: rgb(81, 49, 143);
/* oklch */ color: oklch(40.6% 0.148 294.6);
Tailwind
colors: {
  custom: {
    50: '#876bb0',
    500: '#51318f',
    950: '#000000',
  },
}
SCSS
$custom: #51318f;
$custom-light: #876bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#51318f",
  "rgb": {
    "r": 81,
    "g": 49,
    "b": 143
  },
  "hsl": {
    "h": 260.426,
    "s": 48.958,
    "l": 37.647
  },
  "oklch": {
    "l": 0.40575,
    "c": 0.14777,
    "h": 294.6
  },
  "luminance": 0.05929
}

Semantic roles & 50–950 ramp

primary
#51318F
secondary
#9AB567
accent
#D94FAA
background
#F8F6FA
surface
#F0EBF5
border
#CBC6CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #51318F

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

Preview Lab → · Contrast checker → · Palette generator →

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