#5137BF#5137BF

#5137BF is a mid, vivid violet. Relative luminance 0.082; OKLCH L 45.6% C 0.200 H 283.9°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#5137BF
RGBrgb(81, 55, 191)
HSLhsl(251, 55%, 48%)
HSVhsv(251, 71%, 75%)
CMYKcmyk(57.6%, 71.2%, 0%, 25.1%)
CIE-LABlab(34.48, 47.47, -67.39)
CIE-LCHlch(34.48, 82.43, 305.16°)
OKLaboklab(45.59% 0.048 -0.194)
OKLCHoklch(45.59% 0.2 283.9)
XYZxyz(14.1606, 8.2424, 50.1249)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137BF #A5BF37
analogous
#3761BF #5137BF #9537BF
triadic
#5137BF #BF5137 #37BF51
tetradic
#5137BF #BF3761 #A5BF37 #37BF95
square
#5137BF #BF3761 #A5BF37 #37BF95
split-complementary
#5137BF #BF9537 #61BF37
monochromatic
#291C60 #3D298F #5137BF #7762D2 #A091DF

Accessibility & contrast

On white

7.93
#5137BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5137BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##5137BF#FFFFFF#000000##FFFFFF
##5137BF1.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#004DBC
Tritanopia (blue-blind)
#145C77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5137bf;
/* rgb */ color: rgb(81, 55, 191);
/* oklch */ color: oklch(45.6% 0.200 283.9);
Tailwind
colors: {
  custom: {
    50: '#8e70d3',
    500: '#5137bf',
    950: '#000000',
  },
}
SCSS
$custom: #5137bf;
$custom-light: #8e70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5137bf",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 191
  },
  "hsl": {
    "h": 251.471,
    "s": 55.285,
    "l": 48.235
  },
  "oklch": {
    "l": 0.4559,
    "c": 0.19989,
    "h": 283.9
  },
  "luminance": 0.08243
}

Semantic roles & 50–950 ramp

primary
#5137BF
secondary
#BDCA88
accent
#DF49C2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5137BF

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

Preview Lab → · Contrast checker → · Palette generator →

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