#5137AE#5137AE

#5137AE is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.1% C 0.179 H 286.6°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#5137AE
RGBrgb(81, 55, 174)
HSLhsl(253, 52%, 45%)
HSVhsv(253, 68%, 68%)
CMYKcmyk(53.4%, 68.4%, 0%, 31.8%)
CIE-LABlab(33.00, 42.37, -59.75)
CIE-LCHlch(33.00, 73.25, 305.34°)
OKLaboklab(44.07% 0.051 -0.1716)
OKLCHoklch(44.07% 0.179 286.6)
XYZxyz(12.3972, 7.5371, 40.8378)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137AE #94AE37
analogous
#3759AE #5137AE #8C37AE
triadic
#5137AE #AE5137 #37AE51
tetradic
#5137AE #AE3759 #94AE37 #37AE8C
square
#5137AE #AE3759 #94AE37 #37AE8C
split-complementary
#5137AE #AE8C37 #59AE37
monochromatic
#261A51 #3B287F #5137AE #7158CA #9886D9

Accessibility & contrast

On white

8.37
#5137AE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5137AE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5137AE
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137AE#FFFFFF#000000##FFFFFF
##5137AE1.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B2
Deuteranopia (green-blind)
#004AAC
Tritanopia (blue-blind)
#2C556E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5137ae;
/* rgb */ color: rgb(81, 55, 174);
/* oklch */ color: oklch(44.1% 0.179 286.6);
Tailwind
colors: {
  custom: {
    50: '#8b70c7',
    500: '#5137ae',
    950: '#000000',
  },
}
SCSS
$custom: #5137ae;
$custom-light: #8b70c7;
$custom-dark: #000000;
JSON
{
  "hex": "#5137ae",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 174
  },
  "hsl": {
    "h": 253.109,
    "s": 51.965,
    "l": 44.902
  },
  "oklch": {
    "l": 0.44073,
    "c": 0.17907,
    "h": 286.6
  },
  "luminance": 0.07538
}

Semantic roles & 50–950 ramp

primary
#5137AE
secondary
#B4C37E
accent
#DB4CBC
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5137AE

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

Preview Lab → · Contrast checker → · Palette generator →

#5137AE Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva