#5137CB#5137CB

#5137CB is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.7% C 0.214 H 282.3°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5137CB
RGBrgb(81, 55, 203)
HSLhsl(251, 59%, 51%)
HSVhsv(251, 73%, 80%)
CMYKcmyk(60.1%, 72.9%, 0%, 20.4%)
CIE-LABlab(35.58, 51.05, -72.60)
CIE-LCHlch(35.58, 88.75, 305.11°)
OKLaboklab(46.7% 0.0455 -0.2093)
OKLCHoklch(46.7% 0.214 282.3)
XYZxyz(15.5357, 8.7924, 57.3668)
Luminance0.0879 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137CB #B1CB37
analogous
#3767CB #5137CB #9B37CB
triadic
#5137CB #CB5137 #37CB51
tetradic
#5137CB #CB3767 #B1CB37 #37CB9B
square
#5137CB #CB3767 #B1CB37 #37CB9B
split-complementary
#5137CB #CB9B37 #67CB37
monochromatic
#2A1C6C #3D299C #5137CB #7B68D8 #A698E4

Accessibility & contrast

On white

7.61
#5137CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5137CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5137CB
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137CB#FFFFFF#000000##FFFFFF
##5137CB1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CF
Deuteranopia (green-blind)
#004EC8
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5137cb;
/* rgb */ color: rgb(81, 55, 203);
/* oklch */ color: oklch(46.7% 0.214 282.3);
Tailwind
colors: {
  custom: {
    50: '#9071dc',
    500: '#5137cb',
    950: '#000000',
  },
}
SCSS
$custom: #5137cb;
$custom-light: #9071dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5137cb",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 203
  },
  "hsl": {
    "h": 250.541,
    "s": 58.73,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46704,
    "c": 0.21418,
    "h": 282.3
  },
  "luminance": 0.08794
}

Semantic roles & 50–950 ramp

primary
#5137CB
secondary
#C4D08E
accent
#E246C7
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5137CB

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

Preview Lab → · Contrast checker → · Palette generator →

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