#5137C0#5137C0

#5137C0 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.7% C 0.201 H 283.8°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#5137C0
RGBrgb(81, 55, 192)
HSLhsl(251, 55%, 48%)
HSVhsv(251, 71%, 75%)
CMYKcmyk(57.8%, 71.4%, 0%, 24.7%)
CIE-LABlab(34.57, 47.77, -67.83)
CIE-LCHlch(34.57, 82.96, 305.15°)
OKLaboklab(45.68% 0.0478 -0.1953)
OKLCHoklch(45.68% 0.201 283.8)
XYZxyz(14.2710, 8.2866, 50.7064)
Luminance0.0829 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137C0 #A6C037
analogous
#3761C0 #5137C0 #9537C0
triadic
#5137C0 #C05137 #37C051
tetradic
#5137C0 #C03761 #A6C037 #37C095
square
#5137C0 #C03761 #A6C037 #37C095
split-complementary
#5137C0 #C09537 #61C037
monochromatic
#291C61 #3D2990 #5137C0 #7762D2 #A192E0

Accessibility & contrast

On white

7.90
#5137C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5137C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5137C0
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137C0#FFFFFF#000000##FFFFFF
##5137C01.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C4
Deuteranopia (green-blind)
#004DBD
Tritanopia (blue-blind)
#125C78
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5137c0;
/* rgb */ color: rgb(81, 55, 192);
/* oklch */ color: oklch(45.7% 0.201 283.8);
Tailwind
colors: {
  custom: {
    50: '#8e70d4',
    500: '#5137c0',
    950: '#000000',
  },
}
SCSS
$custom: #5137c0;
$custom-light: #8e70d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5137c0",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 192
  },
  "hsl": {
    "h": 251.387,
    "s": 55.466,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45681,
    "c": 0.2011,
    "h": 283.8
  },
  "luminance": 0.08287
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5137C0

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

Preview Lab → · Contrast checker → · Palette generator →

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