#51398E#51398E

#51398E is a dark, vivid violet. Relative luminance 0.066; OKLCH L 41.8% C 0.135 H 292.6°. Best body text is #FFFFFF at 9.03:1 contrast (WCAG AA passes).

Color values

HEX#51398E
RGBrgb(81, 57, 142)
HSLhsl(257, 43%, 39%)
HSVhsv(257, 60%, 56%)
CMYKcmyk(43%, 59.9%, 0%, 44.3%)
CIE-LABlab(30.95, 31.61, -43.70)
CIE-LCHlch(30.95, 53.93, 305.88°)
OKLaboklab(41.8% 0.0519 -0.1244)
OKLCHoklch(41.8% 0.135 292.6)
XYZxyz(9.7376, 6.6283, 26.3523)
Luminance0.0663 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#51398E #768E39
analogous
#394C8E #51398E #7C398E
triadic
#51398E #8E5139 #398E51
tetradic
#51398E #8E394C #768E39 #398E7C
square
#51398E #8E394C #768E39 #398E7C
split-complementary
#51398E #8E7C39 #4C8E39
monochromatic
#1F1637 #382762 #51398E #6B4DB7 #8F78C9

Accessibility & contrast

On white

9.03
#51398E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#51398E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #51398E
9.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##51398E#FFFFFF#000000##FFFFFF
##51398E1.009.032.339.03
#FFFFFF9.031.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014A91
Deuteranopia (green-blind)
#0C478C
Tritanopia (blue-blind)
#404C5E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #51398e;
/* rgb */ color: rgb(81, 57, 142);
/* oklch */ color: oklch(41.8% 0.135 292.6);
Tailwind
colors: {
  custom: {
    50: '#8670b0',
    500: '#51398e',
    950: '#000000',
  },
}
SCSS
$custom: #51398e;
$custom-light: #8670b0;
$custom-dark: #000000;
JSON
{
  "hex": "#51398e",
  "rgb": {
    "r": 81,
    "g": 57,
    "b": 142
  },
  "hsl": {
    "h": 256.941,
    "s": 42.714,
    "l": 39.02
  },
  "oklch": {
    "l": 0.418,
    "c": 0.13482,
    "h": 292.6
  },
  "luminance": 0.06629
}

Semantic roles & 50–950 ramp

primary
#51398E
secondary
#A0B271
accent
#D255AF
background
#F8F6FA
surface
#F0ECF5
border
#CBC7CF
text
#0C0710
muted
#7D7A7F

Preview Lab

Preview with #51398E

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

Preview Lab → · Contrast checker → · Palette generator →

#51398E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva