#51358F#51358F

#51358F is a dark, vivid violet. Relative luminance 0.063; OKLCH L 41.2% C 0.142 H 293.5°. Best body text is #FFFFFF at 9.31:1 contrast (WCAG AA passes).

Color values

HEX#51358F
RGBrgb(81, 53, 143)
HSLhsl(259, 46%, 38%)
HSVhsv(259, 63%, 56%)
CMYKcmyk(43.4%, 62.9%, 0%, 43.9%)
CIE-LABlab(30.10, 34.31, -45.67)
CIE-LCHlch(30.10, 57.13, 306.92°)
OKLaboklab(41.21% 0.0567 -0.1303)
OKLCHoklch(41.21% 0.142 293.5)
XYZxyz(9.6230, 6.2784, 26.6861)
Luminance0.0628 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51358F #738F35
analogous
#35468F #51358F #7E358F
triadic
#51358F #8F5135 #358F51
tetradic
#51358F #8F3546 #738F35 #358F7E
square
#51358F #8F3546 #738F35 #358F7E
split-complementary
#51358F #8F7E35 #468F35
monochromatic
#1E1436 #382462 #51358F #6B47BB #8F73CB

Accessibility & contrast

On white

9.31
#51358F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#51358F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51358F
9.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51358F#FFFFFF#000000##FFFFFF
##51358F1.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)
#004892
Deuteranopia (green-blind)
#00458D
Tritanopia (blue-blind)
#40495D
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #51358f;
/* rgb */ color: rgb(81, 53, 143);
/* oklch */ color: oklch(41.2% 0.142 293.5);
Tailwind
colors: {
  custom: {
    50: '#876eb0',
    500: '#51358f',
    950: '#000000',
  },
}
SCSS
$custom: #51358f;
$custom-light: #876eb0;
$custom-dark: #000000;
JSON
{
  "hex": "#51358f",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 143
  },
  "hsl": {
    "h": 258.667,
    "s": 45.918,
    "l": 38.431
  },
  "oklch": {
    "l": 0.41208,
    "c": 0.14207,
    "h": 293.5
  },
  "luminance": 0.06279
}

Semantic roles & 50–950 ramp

primary
#51358F
secondary
#9DB46C
accent
#D652AD
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0711
muted
#7D7A80

Preview Lab

Preview with #51358F

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

Preview Lab → · Contrast checker → · Palette generator →

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