#5137CA#5137CA

#5137CA is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.6% C 0.213 H 282.4°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5137CA
RGBrgb(81, 55, 202)
HSLhsl(251, 58%, 50%)
HSVhsv(251, 73%, 79%)
CMYKcmyk(59.9%, 72.8%, 0%, 20.8%)
CIE-LABlab(35.49, 50.75, -72.17)
CIE-LCHlch(35.49, 88.23, 305.11°)
OKLaboklab(46.61% 0.0457 -0.208)
OKLCHoklch(46.61% 0.213 282.4)
XYZxyz(15.4169, 8.7449, 56.7412)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137CA #B0CA37
analogous
#3767CA #5137CA #9A37CA
triadic
#5137CA #CA5137 #37CA51
tetradic
#5137CA #CA3767 #B0CA37 #37CA9A
square
#5137CA #CA3767 #B0CA37 #37CA9A
split-complementary
#5137CA #CA9A37 #67CA37
monochromatic
#2A1C6A #3D299B #5137CA #7B67D7 #A598E4

Accessibility & contrast

On white

7.64
#5137CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5137CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5137CA
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137CA#FFFFFF#000000##FFFFFF
##5137CA1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CE
Deuteranopia (green-blind)
#004EC7
Tritanopia (blue-blind)
#00607D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5137ca;
/* rgb */ color: rgb(81, 55, 202);
/* oklch */ color: oklch(46.6% 0.213 282.4);
Tailwind
colors: {
  custom: {
    50: '#8f71db',
    500: '#5137ca',
    950: '#000000',
  },
}
SCSS
$custom: #5137ca;
$custom-light: #8f71db;
$custom-dark: #000000;
JSON
{
  "hex": "#5137ca",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 202
  },
  "hsl": {
    "h": 250.612,
    "s": 58.103,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4661,
    "c": 0.21299,
    "h": 282.4
  },
  "luminance": 0.08746
}

Semantic roles & 50–950 ramp

primary
#5137CA
secondary
#C4CF8E
accent
#E146C6
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5137CA

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

Preview Lab → · Contrast checker → · Palette generator →

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