#5137BC#5137BC

#5137BC is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.196 H 284.3°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5137BC
RGBrgb(81, 55, 188)
HSLhsl(252, 55%, 48%)
HSVhsv(252, 71%, 74%)
CMYKcmyk(56.9%, 70.7%, 0%, 26.3%)
CIE-LABlab(34.21, 46.57, -66.06)
CIE-LCHlch(34.21, 80.83, 305.18°)
OKLaboklab(45.32% 0.0486 -0.1902)
OKLCHoklch(45.32% 0.196 284.3)
XYZxyz(13.8339, 8.1117, 48.4040)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137BC #A2BC37
analogous
#3760BC #5137BC #9337BC
triadic
#5137BC #BC5137 #37BC51
tetradic
#5137BC #BC3760 #A2BC37 #37BC93
square
#5137BC #BC3760 #A2BC37 #37BC93
split-complementary
#5137BC #BC9337 #60BC37
monochromatic
#281B5D #3D298D #5137BC #7660D0 #9F8FDE

Accessibility & contrast

On white

8.01
#5137BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5137BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5137BC#FFFFFF#000000##FFFFFF
##5137BC1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#1A5A76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5137bc;
/* rgb */ color: rgb(81, 55, 188);
/* oklch */ color: oklch(45.3% 0.196 284.3);
Tailwind
colors: {
  custom: {
    50: '#8d70d1',
    500: '#5137bc',
    950: '#000000',
  },
}
SCSS
$custom: #5137bc;
$custom-light: #8d70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5137bc",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 188
  },
  "hsl": {
    "h": 251.729,
    "s": 54.733,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45317,
    "c": 0.19627,
    "h": 284.3
  },
  "luminance": 0.08113
}

Semantic roles & 50–950 ramp

primary
#5137BC
secondary
#BCC986
accent
#DE4AC1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5137BC

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

Preview Lab → · Contrast checker → · Palette generator →

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