#5137BA#5137BA

#5137BA is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.194 H 284.6°. Best body text is #FFFFFF at 8.06:1 contrast (WCAG AA passes).

Color values

HEX#5137BA
RGBrgb(81, 55, 186)
HSLhsl(252, 54%, 47%)
HSVhsv(252, 70%, 73%)
CMYKcmyk(56.5%, 70.4%, 0%, 27.1%)
CIE-LABlab(34.04, 45.97, -65.18)
CIE-LCHlch(34.04, 79.76, 305.20°)
OKLaboklab(45.14% 0.049 -0.1875)
OKLCHoklch(45.14% 0.194 284.6)
XYZxyz(13.6198, 8.0261, 47.2764)
Luminance0.0803 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137BA #A0BA37
analogous
#375FBA #5137BA #9237BA
triadic
#5137BA #BA5137 #37BA51
tetradic
#5137BA #BA375F #A0BA37 #37BA92
square
#5137BA #BA375F #A0BA37 #37BA92
split-complementary
#5137BA #BA9237 #5FBA37
monochromatic
#281B5C #3C298B #5137BA #755FD0 #9E8EDE

Accessibility & contrast

On white

8.06
#5137BA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5137BA on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5137BA#FFFFFF#000000##FFFFFF
##5137BA1.008.062.618.06
#FFFFFF8.061.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BE
Deuteranopia (green-blind)
#004CB7
Tritanopia (blue-blind)
#1D5A74
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5137ba;
/* rgb */ color: rgb(81, 55, 186);
/* oklch */ color: oklch(45.1% 0.194 284.6);
Tailwind
colors: {
  custom: {
    50: '#8d70d0',
    500: '#5137ba',
    950: '#000000',
  },
}
SCSS
$custom: #5137ba;
$custom-light: #8d70d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5137ba",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 186
  },
  "hsl": {
    "h": 251.908,
    "s": 54.357,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45136,
    "c": 0.19384,
    "h": 284.6
  },
  "luminance": 0.08027
}

Semantic roles & 50–950 ramp

primary
#5137BA
secondary
#BBC885
accent
#DE4AC0
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5137BA

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

Preview Lab → · Contrast checker → · Palette generator →

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