#5137C6#5137C6

#5137C6 is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.2% C 0.208 H 282.9°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5137C6
RGBrgb(81, 55, 198)
HSLhsl(251, 57%, 50%)
HSVhsv(251, 72%, 78%)
CMYKcmyk(59.1%, 72.2%, 0%, 22.4%)
CIE-LABlab(35.12, 49.56, -70.45)
CIE-LCHlch(35.12, 86.13, 305.13°)
OKLaboklab(46.24% 0.0466 -0.203)
OKLCHoklch(46.24% 0.208 282.9)
XYZxyz(14.9494, 8.5579, 54.2792)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137C6 #ACC637
analogous
#3765C6 #5137C6 #9937C6
triadic
#5137C6 #C65137 #37C651
tetradic
#5137C6 #C63765 #ACC637 #37C699
square
#5137C6 #C63765 #ACC637 #37C699
split-complementary
#5137C6 #C69937 #65C637
monochromatic
#2A1C66 #3D2A96 #5137C6 #7A66D4 #A396E2

Accessibility & contrast

On white

7.74
#5137C6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5137C6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5137C6
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137C6#FFFFFF#000000##FFFFFF
##5137C61.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CA
Deuteranopia (green-blind)
#004EC3
Tritanopia (blue-blind)
#005E7B
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5137c6;
/* rgb */ color: rgb(81, 55, 198);
/* oklch */ color: oklch(46.2% 0.208 282.9);
Tailwind
colors: {
  custom: {
    50: '#8f71d8',
    500: '#5137c6',
    950: '#000000',
  },
}
SCSS
$custom: #5137c6;
$custom-light: #8f71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5137c6",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 198
  },
  "hsl": {
    "h": 250.909,
    "s": 56.522,
    "l": 49.608
  },
  "oklch": {
    "l": 0.46236,
    "c": 0.20827,
    "h": 282.9
  },
  "luminance": 0.08559
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5137C6

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

Preview Lab → · Contrast checker → · Palette generator →

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