#5137AC#5137AC

#5137AC is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.9% C 0.177 H 286.9°. Best body text is #FFFFFF at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#5137AC
RGBrgb(81, 55, 172)
HSLhsl(253, 52%, 45%)
HSVhsv(253, 68%, 67%)
CMYKcmyk(52.9%, 68%, 0%, 32.5%)
CIE-LABlab(32.83, 41.76, -58.83)
CIE-LCHlch(32.83, 72.15, 305.37°)
OKLaboklab(43.9% 0.0514 -0.1689)
OKLCHoklch(43.9% 0.177 286.9)
XYZxyz(12.2037, 7.4597, 39.8185)
Luminance0.0746 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137AC #92AC37
analogous
#3758AC #5137AC #8C37AC
triadic
#5137AC #AC5137 #37AC51
tetradic
#5137AC #AC3758 #92AC37 #37AC8C
square
#5137AC #AC3758 #92AC37 #37AC8C
split-complementary
#5137AC #AC8C37 #58AC37
monochromatic
#25194F #3B287E #5137AC #7057C9 #9885D8

Accessibility & contrast

On white

8.43
#5137AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#5137AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5137AC#FFFFFF#000000##FFFFFF
##5137AC1.008.432.498.43
#FFFFFF8.431.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0050B0
Deuteranopia (green-blind)
#004AAA
Tritanopia (blue-blind)
#2D556D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5137ac;
/* rgb */ color: rgb(81, 55, 172);
/* oklch */ color: oklch(43.9% 0.177 286.9);
Tailwind
colors: {
  custom: {
    50: '#8b70c6',
    500: '#5137ac',
    950: '#000000',
  },
}
SCSS
$custom: #5137ac;
$custom-light: #8b70c6;
$custom-dark: #000000;
JSON
{
  "hex": "#5137ac",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 172
  },
  "hsl": {
    "h": 253.333,
    "s": 51.542,
    "l": 44.51
  },
  "oklch": {
    "l": 0.439,
    "c": 0.17657,
    "h": 286.9
  },
  "luminance": 0.0746
}

Semantic roles & 50–950 ramp

primary
#5137AC
secondary
#B3C27D
accent
#DB4DBB
background
#F9F6FC
surface
#F1ECF8
border
#CBC7D1
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5137AC

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

Preview Lab → · Contrast checker → · Palette generator →

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