#5137C7#5137C7

#5137C7 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.3% C 0.209 H 282.8°. Best body text is #FFFFFF at 7.72:1 contrast (WCAG AA passes).

Color values

HEX#5137C7
RGBrgb(81, 55, 199)
HSLhsl(251, 57%, 50%)
HSVhsv(251, 72%, 78%)
CMYKcmyk(59.3%, 72.4%, 0%, 22%)
CIE-LABlab(35.21, 49.86, -70.88)
CIE-LCHlch(35.21, 86.66, 305.12°)
OKLaboklab(46.33% 0.0464 -0.2042)
OKLCHoklch(46.33% 0.209 282.8)
XYZxyz(15.0651, 8.6042, 54.8887)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137C7 #ADC737
analogous
#3765C7 #5137C7 #9937C7
triadic
#5137C7 #C75137 #37C751
tetradic
#5137C7 #C73765 #ADC737 #37C799
square
#5137C7 #C73765 #ADC737 #37C799
split-complementary
#5137C7 #C79937 #65C737
monochromatic
#2A1C67 #3D2A97 #5137C7 #7A66D5 #A496E2

Accessibility & contrast

On white

7.72
#5137C7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5137C7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5137C7
7.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137C7#FFFFFF#000000##FFFFFF
##5137C71.007.722.727.72
#FFFFFF7.721.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CB
Deuteranopia (green-blind)
#004EC4
Tritanopia (blue-blind)
#005F7C
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5137c7;
/* rgb */ color: rgb(81, 55, 199);
/* oklch */ color: oklch(46.3% 0.209 282.8);
Tailwind
colors: {
  custom: {
    50: '#8f71d9',
    500: '#5137c7',
    950: '#000000',
  },
}
SCSS
$custom: #5137c7;
$custom-light: #8f71d9;
$custom-dark: #000000;
JSON
{
  "hex": "#5137c7",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 199
  },
  "hsl": {
    "h": 250.833,
    "s": 56.693,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46329,
    "c": 0.20945,
    "h": 282.8
  },
  "luminance": 0.08605
}

Semantic roles & 50–950 ramp

primary
#5137C7
secondary
#C2CD8C
accent
#E048C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5137C7

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

Preview Lab → · Contrast checker → · Palette generator →

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