#5136CB#5136CB

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

Color values

HEX#5136CB
RGBrgb(81, 54, 203)
HSLhsl(251, 59%, 50%)
HSVhsv(251, 73%, 80%)
CMYKcmyk(60.1%, 73.4%, 0%, 20.4%)
CIE-LABlab(35.40, 51.57, -72.90)
CIE-LCHlch(35.40, 89.30, 305.27°)
OKLaboklab(46.57% 0.0462 -0.2102)
OKLCHoklch(46.57% 0.215 282.4)
XYZxyz(15.4886, 8.6984, 57.3511)
Luminance0.0870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136CB #B0CB36
analogous
#3666CB #5136CB #9B36CB
triadic
#5136CB #CB5136 #36CB51
tetradic
#5136CB #CB3666 #B0CB36 #36CB9B
square
#5136CB #CB3666 #B0CB36 #36CB9B
split-complementary
#5136CB #CB9B36 #66CB36
monochromatic
#2A1C6B #3D289C #5136CB #7B67D8 #A597E4

Accessibility & contrast

On white

7.66
#5136CB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#5136CB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136CB
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136CB#FFFFFF#000000##FFFFFF
##5136CB1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058CF
Deuteranopia (green-blind)
#004EC8
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5136cb;
/* rgb */ color: rgb(81, 54, 203);
/* oklch */ color: oklch(46.6% 0.215 282.4);
Tailwind
colors: {
  custom: {
    50: '#9070dc',
    500: '#5136cb',
    950: '#000000',
  },
}
SCSS
$custom: #5136cb;
$custom-light: #9070dc;
$custom-dark: #000000;
JSON
{
  "hex": "#5136cb",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 203
  },
  "hsl": {
    "h": 250.872,
    "s": 58.893,
    "l": 50.392
  },
  "oklch": {
    "l": 0.46574,
    "c": 0.21519,
    "h": 282.4
  },
  "luminance": 0.08699
}

Semantic roles & 50–950 ramp

primary
#5136CB
secondary
#C4D08D
accent
#E246C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5136CB

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

Preview Lab → · Contrast checker → · Palette generator →

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