#5136BC#5136BC

#5136BC is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.2% C 0.197 H 284.5°. Best body text is #FFFFFF at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#5136BC
RGBrgb(81, 54, 188)
HSLhsl(252, 55%, 47%)
HSVhsv(252, 71%, 74%)
CMYKcmyk(56.9%, 71.3%, 0%, 26.3%)
CIE-LABlab(34.02, 47.11, -66.38)
CIE-LCHlch(34.02, 81.40, 305.36°)
OKLaboklab(45.18% 0.0494 -0.1911)
OKLCHoklch(45.18% 0.197 284.5)
XYZxyz(13.7868, 8.0177, 48.3883)
Luminance0.0802 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136BC #A1BC36
analogous
#365EBC #5136BC #9436BC
triadic
#5136BC #BC5136 #36BC51
tetradic
#5136BC #BC365E #A1BC36 #36BC94
square
#5136BC #BC365E #A1BC36 #36BC94
split-complementary
#5136BC #BC9436 #5EBC36
monochromatic
#281B5D #3D288C #5136BC #755ED1 #9E8EDF

Accessibility & contrast

On white

8.07
#5136BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.60
#5136BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136BC
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136BC#FFFFFF#000000##FFFFFF
##5136BC1.008.072.608.07
#FFFFFF8.071.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C0
Deuteranopia (green-blind)
#004CB9
Tritanopia (blue-blind)
#1A5A75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5136bc;
/* rgb */ color: rgb(81, 54, 188);
/* oklch */ color: oklch(45.2% 0.197 284.5);
Tailwind
colors: {
  custom: {
    50: '#8d70d1',
    500: '#5136bc',
    950: '#000000',
  },
}
SCSS
$custom: #5136bc;
$custom-light: #8d70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5136bc",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 188
  },
  "hsl": {
    "h": 252.09,
    "s": 55.372,
    "l": 47.451
  },
  "oklch": {
    "l": 0.45178,
    "c": 0.19737,
    "h": 284.5
  },
  "luminance": 0.08019
}

Semantic roles & 50–950 ramp

primary
#5136BC
secondary
#BBC985
accent
#DF49C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5136BC

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

Preview Lab → · Contrast checker → · Palette generator →

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