#5137C5#5137C5

#5137C5 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.1% C 0.207 H 283.1°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5137C5
RGBrgb(81, 55, 197)
HSLhsl(251, 56%, 49%)
HSVhsv(251, 72%, 77%)
CMYKcmyk(58.9%, 72.1%, 0%, 22.7%)
CIE-LABlab(35.03, 49.26, -70.01)
CIE-LCHlch(35.03, 85.61, 305.13°)
OKLaboklab(46.14% 0.0468 -0.2017)
OKLCHoklch(46.14% 0.207 283.1)
XYZxyz(14.8345, 8.5119, 53.6738)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5137C5 #ABC537
analogous
#3764C5 #5137C5 #9837C5
triadic
#5137C5 #C55137 #37C551
tetradic
#5137C5 #C53764 #ABC537 #37C598
square
#5137C5 #C53764 #ABC537 #37C598
split-complementary
#5137C5 #C59837 #64C537
monochromatic
#2A1C65 #3D2A95 #5137C5 #7965D4 #A395E1

Accessibility & contrast

On white

7.77
#5137C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5137C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5137C5
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5137C5#FFFFFF#000000##FFFFFF
##5137C51.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057C9
Deuteranopia (green-blind)
#004EC2
Tritanopia (blue-blind)
#025E7B
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5137c5;
/* rgb */ color: rgb(81, 55, 197);
/* oklch */ color: oklch(46.1% 0.207 283.1);
Tailwind
colors: {
  custom: {
    50: '#8f71d8',
    500: '#5137c5',
    950: '#000000',
  },
}
SCSS
$custom: #5137c5;
$custom-light: #8f71d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5137c5",
  "rgb": {
    "r": 81,
    "g": 55,
    "b": 197
  },
  "hsl": {
    "h": 250.986,
    "s": 56.349,
    "l": 49.412
  },
  "oklch": {
    "l": 0.46143,
    "c": 0.20708,
    "h": 283.1
  },
  "luminance": 0.08513
}

Semantic roles & 50–950 ramp

primary
#5137C5
secondary
#C1CD8B
accent
#E048C4
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5137C5

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

Preview Lab → · Contrast checker → · Palette generator →

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