#5136BF#5136BF

#5136BF is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.5% C 0.201 H 284.1°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5136BF
RGBrgb(81, 54, 191)
HSLhsl(252, 56%, 48%)
HSVhsv(252, 72%, 75%)
CMYKcmyk(57.6%, 71.7%, 0%, 25.1%)
CIE-LABlab(34.29, 48.00, -67.71)
CIE-LCHlch(34.29, 83.00, 305.34°)
OKLaboklab(45.45% 0.0488 -0.195)
OKLCHoklch(45.45% 0.201 284.1)
XYZxyz(14.1136, 8.1484, 50.1092)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136BF #A4BF36
analogous
#365FBF #5136BF #9536BF
triadic
#5136BF #BF5136 #36BF51
tetradic
#5136BF #BF365F #A4BF36 #36BF95
square
#5136BF #BF365F #A4BF36 #36BF95
split-complementary
#5136BF #BF9536 #5FBF36
monochromatic
#291B60 #3D298F #5136BF #7760D2 #A090E0

Accessibility & contrast

On white

7.99
#5136BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5136BF on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136BF
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136BF#FFFFFF#000000##FFFFFF
##5136BF1.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C3
Deuteranopia (green-blind)
#004CBC
Tritanopia (blue-blind)
#155B77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5136bf;
/* rgb */ color: rgb(81, 54, 191);
/* oklch */ color: oklch(45.5% 0.201 284.1);
Tailwind
colors: {
  custom: {
    50: '#8e70d3',
    500: '#5136bf',
    950: '#000000',
  },
}
SCSS
$custom: #5136bf;
$custom-light: #8e70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5136bf",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 191
  },
  "hsl": {
    "h": 251.825,
    "s": 55.918,
    "l": 48.039
  },
  "oklch": {
    "l": 0.45453,
    "c": 0.20097,
    "h": 284.1
  },
  "luminance": 0.08149
}

Semantic roles & 50–950 ramp

primary
#5136BF
secondary
#BDCA87
accent
#DF49C2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5136BF

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

Preview Lab → · Contrast checker → · Palette generator →

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