#5136BB#5136BB

#5136BB is a mid, vivid violet. Relative luminance 0.080; OKLCH L 45.1% C 0.196 H 284.6°. Best body text is #FFFFFF at 8.09:1 contrast (WCAG AA passes).

Color values

HEX#5136BB
RGBrgb(81, 54, 187)
HSLhsl(252, 55%, 47%)
HSVhsv(252, 71%, 73%)
CMYKcmyk(56.7%, 71.1%, 0%, 26.7%)
CIE-LABlab(33.93, 46.81, -65.94)
CIE-LCHlch(33.93, 80.87, 305.37°)
OKLaboklab(45.09% 0.0496 -0.1898)
OKLCHoklch(45.09% 0.196 284.6)
XYZxyz(13.6794, 7.9747, 47.8225)
Luminance0.0798 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136BB #A0BB36
analogous
#365EBB #5136BB #9336BB
triadic
#5136BB #BB5136 #36BB51
tetradic
#5136BB #BB365E #A0BB36 #36BB93
square
#5136BB #BB365E #A0BB36 #36BB93
split-complementary
#5136BB #BB9336 #5EBB36
monochromatic
#281B5C #3C288C #5136BB #755ED0 #9E8DDE

Accessibility & contrast

On white

8.09
#5136BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5136BB
8.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136BB#FFFFFF#000000##FFFFFF
##5136BB1.008.092.608.09
#FFFFFF8.091.0021.001.00
#0000002.6021.001.0021.00
##FFFFFF8.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054BF
Deuteranopia (green-blind)
#004CB8
Tritanopia (blue-blind)
#1C5A75
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5136bb;
/* rgb */ color: rgb(81, 54, 187);
/* oklch */ color: oklch(45.1% 0.196 284.6);
Tailwind
colors: {
  custom: {
    50: '#8d70d1',
    500: '#5136bb',
    950: '#000000',
  },
}
SCSS
$custom: #5136bb;
$custom-light: #8d70d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5136bb",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 187
  },
  "hsl": {
    "h": 252.18,
    "s": 55.187,
    "l": 47.255
  },
  "oklch": {
    "l": 0.45087,
    "c": 0.19616,
    "h": 284.6
  },
  "luminance": 0.07976
}

Semantic roles & 50–950 ramp

primary
#5136BB
secondary
#BBC984
accent
#DF49C0
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0714
muted
#7E7A83

Preview Lab

Preview with #5136BB

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

Preview Lab → · Contrast checker → · Palette generator →

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