#5137C2#5137C2

#5137C2 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 45.9% C 0.203 H 283.5°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5137C2
RGBrgb(81, 55, 194)
HSLhsl(251, 56%, 49%)
HSVhsv(251, 72%, 76%)
CMYKcmyk(58.2%, 71.6%, 0%, 23.9%)
CIE-LABlab(34.75, 48.36, -68.71)
CIE-LCHlch(34.75, 84.02, 305.14°)
OKLaboklab(45.87% 0.0474 -0.1979)
OKLCHoklch(45.87% 0.203 283.5)
XYZxyz(14.4941, 8.3758, 51.8814)
Luminance0.0838 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137C2 #A8C237
analogous
#3763C2 #5137C2 #9737C2
triadic
#5137C2 #C25137 #37C251
tetradic
#5137C2 #C23763 #A8C237 #37C297
square
#5137C2 #C23763 #A8C237 #37C297
split-complementary
#5137C2 #C29737 #63C237
monochromatic
#291C63 #3D2992 #5137C2 #7863D3 #A193E0

Accessibility & contrast

On white

7.85
#5137C2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5137C2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5137C2
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137C2#FFFFFF#000000##FFFFFF
##5137C21.007.852.687.85
#FFFFFF7.851.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C6
Deuteranopia (green-blind)
#004DBF
Tritanopia (blue-blind)
#0D5D79
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5137c2;
/* rgb */ color: rgb(81, 55, 194);
/* oklch */ color: oklch(45.9% 0.203 283.5);
Tailwind
colors: {
  custom: {
    50: '#8e70d6',
    500: '#5137c2',
    950: '#000000',
  },
}
SCSS
$custom: #5137c2;
$custom-light: #8e70d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5137c2",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 194
  },
  "hsl": {
    "h": 251.223,
    "s": 55.823,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45865,
    "c": 0.20349,
    "h": 283.5
  },
  "luminance": 0.08377
}

Semantic roles & 50–950 ramp

primary
#5137C2
secondary
#BFCB89
accent
#DF49C3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5137C2

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

Preview Lab → · Contrast checker → · Palette generator →

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