#5137CE#5137CE

#5137CE is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.218 H 281.9°. Best body text is #FFFFFF at 7.53:1 contrast (WCAG AA passes).

Color values

HEX#5137CE
RGBrgb(81, 55, 206)
HSLhsl(250, 61%, 51%)
HSVhsv(250, 73%, 81%)
CMYKcmyk(60.7%, 73.3%, 0%, 19.2%)
CIE-LABlab(35.86, 51.94, -73.88)
CIE-LCHlch(35.86, 90.31, 305.11°)
OKLaboklab(46.99% 0.0448 -0.213)
OKLCHoklch(46.99% 0.218 281.9)
XYZxyz(15.8966, 8.9368, 59.2678)
Luminance0.0894 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137CE #B4CE37
analogous
#3768CE #5137CE #9C37CE
triadic
#5137CE #CE5137 #37CE51
tetradic
#5137CE #CE3768 #B4CE37 #37CE9C
square
#5137CE #CE3768 #B4CE37 #37CE9C
split-complementary
#5137CE #CE9C37 #68CE37
monochromatic
#2A1B6F #3C27A0 #5137CE #7C68DA #A799E6

Accessibility & contrast

On white

7.53
#5137CE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#5137CE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5137CE
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137CE#FFFFFF#000000##FFFFFF
##5137CE1.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D2
Deuteranopia (green-blind)
#004FCB
Tritanopia (blue-blind)
#006180
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5137ce;
/* rgb */ color: rgb(81, 55, 206);
/* oklch */ color: oklch(47.0% 0.218 281.9);
Tailwind
colors: {
  custom: {
    50: '#9071de',
    500: '#5137ce',
    950: '#000000',
  },
}
SCSS
$custom: #5137ce;
$custom-light: #9071de;
$custom-dark: #000000;
JSON
{
  "hex": "#5137ce",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 206
  },
  "hsl": {
    "h": 250.331,
    "s": 60.643,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46988,
    "c": 0.2177,
    "h": 281.9
  },
  "luminance": 0.08938
}

Semantic roles & 50–950 ramp

primary
#5137CE
secondary
#C6D28F
accent
#E444C8
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5137CE

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

Preview Lab → · Contrast checker → · Palette generator →

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