#5136CF#5136CF

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

Color values

HEX#5136CF
RGBrgb(81, 54, 207)
HSLhsl(251, 61%, 51%)
HSVhsv(251, 74%, 81%)
CMYKcmyk(60.9%, 73.9%, 0%, 18.8%)
CIE-LABlab(35.77, 52.75, -74.61)
CIE-LCHlch(35.77, 91.37, 305.26°)
OKLaboklab(46.95% 0.0453 -0.2151)
OKLCHoklch(46.95% 0.22 281.9)
XYZxyz(15.9715, 8.8915, 59.8940)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136CF #B4CF36
analogous
#3667CF #5136CF #9D36CF
triadic
#5136CF #CF5136 #36CF51
tetradic
#5136CF #CF3667 #B4CF36 #36CF9D
square
#5136CF #CF3667 #B4CF36 #36CF9D
split-complementary
#5136CF #CF9D36 #67CF36
monochromatic
#2A1B70 #3C27A1 #5136CF #7C67DB #A799E7

Accessibility & contrast

On white

7.56
#5136CF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5136CF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136CF
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136CF#FFFFFF#000000##FFFFFF
##5136CF1.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5136cf;
/* rgb */ color: rgb(81, 54, 207);
/* oklch */ color: oklch(47.0% 0.220 281.9);
Tailwind
colors: {
  custom: {
    50: '#9070df',
    500: '#5136cf',
    950: '#000000',
  },
}
SCSS
$custom: #5136cf;
$custom-light: #9070df;
$custom-dark: #000000;
JSON
{
  "hex": "#5136cf",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 207
  },
  "hsl": {
    "h": 250.588,
    "s": 61.446,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46954,
    "c": 0.21986,
    "h": 281.9
  },
  "luminance": 0.08893
}

Semantic roles & 50–950 ramp

primary
#5136CF
secondary
#C6D28F
accent
#E543C8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5136CF

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

Preview Lab → · Contrast checker → · Palette generator →

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