#5136CC#5136CC

#5136CC is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.7% C 0.216 H 282.3°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#5136CC
RGBrgb(81, 54, 204)
HSLhsl(251, 60%, 51%)
HSVhsv(251, 74%, 80%)
CMYKcmyk(60.3%, 73.5%, 0%, 20%)
CIE-LABlab(35.49, 51.86, -73.33)
CIE-LCHlch(35.49, 89.82, 305.27°)
OKLaboklab(46.67% 0.046 -0.2114)
OKLCHoklch(46.67% 0.216 282.3)
XYZxyz(15.6082, 8.7462, 57.9807)
Luminance0.0875 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136CC #B1CC36
analogous
#3666CC #5136CC #9C36CC
triadic
#5136CC #CC5136 #36CC51
tetradic
#5136CC #CC3666 #B1CC36 #36CC9C
square
#5136CC #CC3666 #B1CC36 #36CC9C
split-complementary
#5136CC #CC9C36 #66CC36
monochromatic
#2A1B6C #3D289D #5136CC #7B67D8 #A698E5

Accessibility & contrast

On white

7.64
#5136CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5136CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136CC
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136CC#FFFFFF#000000##FFFFFF
##5136CC1.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)
#0058D0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5136cc;
/* rgb */ color: rgb(81, 54, 204);
/* oklch */ color: oklch(46.7% 0.216 282.3);
Tailwind
colors: {
  custom: {
    50: '#9070dd',
    500: '#5136cc',
    950: '#000000',
  },
}
SCSS
$custom: #5136cc;
$custom-light: #9070dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5136cc",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 204
  },
  "hsl": {
    "h": 250.8,
    "s": 59.524,
    "l": 50.588
  },
  "oklch": {
    "l": 0.46668,
    "c": 0.21636,
    "h": 282.3
  },
  "luminance": 0.08747
}

Semantic roles & 50–950 ramp

primary
#5136CC
secondary
#C4D08E
accent
#E345C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5136CC

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

Preview Lab → · Contrast checker → · Palette generator →

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