#5137C3#5137C3

#5137C3 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.205 H 283.3°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5137C3
RGBrgb(81, 55, 195)
HSLhsl(251, 56%, 49%)
HSVhsv(251, 72%, 76%)
CMYKcmyk(58.5%, 71.8%, 0%, 23.5%)
CIE-LABlab(34.84, 48.66, -69.14)
CIE-LCHlch(34.84, 84.55, 305.14°)
OKLaboklab(45.96% 0.0472 -0.1992)
OKLCHoklch(45.96% 0.205 283.3)
XYZxyz(14.6068, 8.4209, 52.4749)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137C3 #A9C337
analogous
#3763C3 #5137C3 #9737C3
triadic
#5137C3 #C35137 #37C351
tetradic
#5137C3 #C33763 #A9C337 #37C397
square
#5137C3 #C33763 #A9C337 #37C397
split-complementary
#5137C3 #C39737 #63C337
monochromatic
#291C64 #3D2A93 #5137C3 #7964D3 #A294E1

Accessibility & contrast

On white

7.82
#5137C3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5137C3
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137C3#FFFFFF#000000##FFFFFF
##5137C31.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C7
Deuteranopia (green-blind)
#004DC0
Tritanopia (blue-blind)
#095D79
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5137c3;
/* rgb */ color: rgb(81, 55, 195);
/* oklch */ color: oklch(46.0% 0.205 283.3);
Tailwind
colors: {
  custom: {
    50: '#8e71d6',
    500: '#5137c3',
    950: '#000000',
  },
}
SCSS
$custom: #5137c3;
$custom-light: #8e71d6;
$custom-dark: #000000;
JSON
{
  "hex": "#5137c3",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 195
  },
  "hsl": {
    "h": 251.143,
    "s": 56,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45958,
    "c": 0.20469,
    "h": 283.3
  },
  "luminance": 0.08422
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5137C3

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

Preview Lab → · Contrast checker → · Palette generator →

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