#5136C4#5136C4

#5136C4 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 45.9% C 0.207 H 283.3°. Best body text is #FFFFFF at 7.85:1 contrast (WCAG AA passes).

Color values

HEX#5136C4
RGBrgb(81, 54, 196)
HSLhsl(251, 57%, 49%)
HSVhsv(251, 72%, 77%)
CMYKcmyk(58.7%, 72.4%, 0%, 23.1%)
CIE-LABlab(34.75, 49.49, -69.89)
CIE-LCHlch(34.75, 85.64, 305.30°)
OKLaboklab(45.92% 0.0478 -0.2013)
OKLCHoklch(45.92% 0.207 283.3)
XYZxyz(14.6732, 8.3722, 53.0566)
Luminance0.0837 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136C4 #A9C436
analogous
#3662C4 #5136C4 #9836C4
triadic
#5136C4 #C45136 #36C451
tetradic
#5136C4 #C43662 #A9C436 #36C498
square
#5136C4 #C43662 #A9C436 #36C498
split-complementary
#5136C4 #C49836 #62C436
monochromatic
#291C64 #3D2994 #5136C4 #7963D4 #A293E1

Accessibility & contrast

On white

7.85
#5136C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5136C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136C4
7.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136C4#FFFFFF#000000##FFFFFF
##5136C41.007.852.677.85
#FFFFFF7.851.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#004DC1
Tritanopia (blue-blind)
#065D7A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5136c4;
/* rgb */ color: rgb(81, 54, 196);
/* oklch */ color: oklch(45.9% 0.207 283.3);
Tailwind
colors: {
  custom: {
    50: '#8f70d7',
    500: '#5136c4',
    950: '#000000',
  },
}
SCSS
$custom: #5136c4;
$custom-light: #8f70d7;
$custom-dark: #000000;
JSON
{
  "hex": "#5136c4",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 196
  },
  "hsl": {
    "h": 251.408,
    "s": 56.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45916,
    "c": 0.20693,
    "h": 283.3
  },
  "luminance": 0.08373
}

Semantic roles & 50–950 ramp

primary
#5136C4
secondary
#C0CC89
accent
#E048C3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5136C4

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

Preview Lab → · Contrast checker → · Palette generator →

#5136C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva