#5137BB#5137BB

#5137BB is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.2% C 0.195 H 284.5°. Best body text is #FFFFFF at 8.03:1 contrast (WCAG AA passes).

Color values

HEX#5137BB
RGBrgb(81, 55, 187)
HSLhsl(252, 55%, 47%)
HSVhsv(252, 71%, 73%)
CMYKcmyk(56.7%, 70.6%, 0%, 26.7%)
CIE-LABlab(34.13, 46.27, -65.62)
CIE-LCHlch(34.13, 80.29, 305.19°)
OKLaboklab(45.23% 0.0488 -0.1888)
OKLCHoklch(45.23% 0.195 284.5)
XYZxyz(13.7264, 8.0687, 47.8382)
Luminance0.0807 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137BB #A1BB37
analogous
#375FBB #5137BB #9337BB
triadic
#5137BB #BB5137 #37BB51
tetradic
#5137BB #BB375F #A1BB37 #37BB93
square
#5137BB #BB375F #A1BB37 #37BB93
split-complementary
#5137BB #BB9337 #5FBB37
monochromatic
#281B5C #3D298C #5137BB #755FD0 #9E8EDE

Accessibility & contrast

On white

8.03
#5137BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##5137BB#FFFFFF#000000##FFFFFF
##5137BB1.008.032.618.03
#FFFFFF8.031.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#1C5A75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5137bb;
/* rgb */ color: rgb(81, 55, 187);
/* oklch */ color: oklch(45.2% 0.195 284.5);
Tailwind
colors: {
  custom: {
    50: '#8d70d1',
    500: '#5137bb',
    950: '#000000',
  },
}
SCSS
$custom: #5137bb;
$custom-light: #8d70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5137bb",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 187
  },
  "hsl": {
    "h": 251.818,
    "s": 54.545,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45226,
    "c": 0.19505,
    "h": 284.5
  },
  "luminance": 0.0807
}

Semantic roles & 50–950 ramp

primary
#5137BB
secondary
#BBC985
accent
#DE4AC1
background
#F9F6FC
surface
#F2ECF9
border
#CCC7D2
text
#0D0814
muted
#7E7B82

Preview Lab

Preview with #5137BB

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

Preview Lab → · Contrast checker → · Palette generator →

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