#5137CC#5137CC

#5137CC is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.215 H 282.1°. Best body text is #FFFFFF at 7.59:1 contrast (WCAG AA passes).

Color values

HEX#5137CC
RGBrgb(81, 55, 204)
HSLhsl(250, 59%, 51%)
HSVhsv(250, 73%, 80%)
CMYKcmyk(60.3%, 73%, 0%, 20%)
CIE-LABlab(35.67, 51.34, -73.03)
CIE-LCHlch(35.67, 89.27, 305.11°)
OKLaboklab(46.8% 0.0453 -0.2105)
OKLCHoklch(46.8% 0.215 282.1)
XYZxyz(15.6552, 8.8402, 57.9964)
Luminance0.0884 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137CC #B2CC37
analogous
#3767CC #5137CC #9C37CC
triadic
#5137CC #CC5137 #37CC51
tetradic
#5137CC #CC3767 #B2CC37 #37CC9C
square
#5137CC #CC3767 #B2CC37 #37CC9C
split-complementary
#5137CC #CC9C37 #67CC37
monochromatic
#2A1C6D #3D289E #5137CC #7B68D8 #A699E5

Accessibility & contrast

On white

7.59
#5137CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#5137CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5137CC
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137CC#FFFFFF#000000##FFFFFF
##5137CC1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D0
Deuteranopia (green-blind)
#004FC9
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5137cc;
/* rgb */ color: rgb(81, 55, 204);
/* oklch */ color: oklch(46.8% 0.215 282.1);
Tailwind
colors: {
  custom: {
    50: '#9071dd',
    500: '#5137cc',
    950: '#000000',
  },
}
SCSS
$custom: #5137cc;
$custom-light: #9071dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5137cc",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 204
  },
  "hsl": {
    "h": 250.47,
    "s": 59.363,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46798,
    "c": 0.21536,
    "h": 282.1
  },
  "luminance": 0.08841
}

Semantic roles & 50–950 ramp

primary
#5137CC
secondary
#C5D08E
accent
#E345C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5137CC

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

Preview Lab → · Contrast checker → · Palette generator →

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