#5137AA#5137AA

#5137AA is a dark, vivid violet. Relative luminance 0.074; OKLCH L 43.7% C 0.174 H 287.3°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#5137AA
RGBrgb(81, 55, 170)
HSLhsl(254, 51%, 44%)
HSVhsv(254, 68%, 67%)
CMYKcmyk(52.4%, 67.6%, 0%, 33.3%)
CIE-LABlab(32.66, 41.16, -57.91)
CIE-LCHlch(32.66, 71.05, 305.41°)
OKLaboklab(43.73% 0.0517 -0.1662)
OKLCHoklch(43.73% 0.174 287.3)
XYZxyz(12.0131, 7.3834, 38.8146)
Luminance0.0738 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137AA #90AA37
analogous
#3757AA #5137AA #8B37AA
triadic
#5137AA #AA5137 #37AA51
tetradic
#5137AA #AA3757 #90AA37 #37AA8B
square
#5137AA #AA3757 #90AA37 #37AA8B
split-complementary
#5137AA #AA8B37 #57AA37
monochromatic
#25194E #3B287C #5137AA #7056C8 #9784D7

Accessibility & contrast

On white

8.48
#5137AA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#5137AA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5137AA#FFFFFF#000000##FFFFFF
##5137AA1.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050AE
Deuteranopia (green-blind)
#004AA8
Tritanopia (blue-blind)
#2F546C
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5137aa;
/* rgb */ color: rgb(81, 55, 170);
/* oklch */ color: oklch(43.7% 0.174 287.3);
Tailwind
colors: {
  custom: {
    50: '#8a70c4',
    500: '#5137aa',
    950: '#000000',
  },
}
SCSS
$custom: #5137aa;
$custom-light: #8a70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#5137aa",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 170
  },
  "hsl": {
    "h": 253.565,
    "s": 51.111,
    "l": 44.118
  },
  "oklch": {
    "l": 0.43728,
    "c": 0.17406,
    "h": 287.3
  },
  "luminance": 0.07384
}

Semantic roles & 50–950 ramp

primary
#5137AA
secondary
#B1C17C
accent
#DB4DBB
background
#F8F6FC
surface
#F0ECF8
border
#CBC7D1
text
#0D0713
muted
#7D7A82

Preview Lab

Preview with #5137AA

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

Preview Lab → · Contrast checker → · Palette generator →

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