#5136BE#5136BE

#5136BE is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.4% C 0.200 H 284.2°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5136BE
RGBrgb(81, 54, 190)
HSLhsl(252, 56%, 48%)
HSVhsv(252, 72%, 75%)
CMYKcmyk(57.4%, 71.6%, 0%, 25.5%)
CIE-LABlab(34.20, 47.71, -67.27)
CIE-LCHlch(34.20, 82.47, 305.34°)
OKLaboklab(45.36% 0.049 -0.1937)
OKLCHoklch(45.36% 0.2 284.2)
XYZxyz(14.0039, 8.1045, 49.5316)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136BE #A3BE36
analogous
#365FBE #5136BE #9536BE
triadic
#5136BE #BE5136 #36BE51
tetradic
#5136BE #BE365F #A3BE36 #36BE95
square
#5136BE #BE365F #A3BE36 #36BE95
split-complementary
#5136BE #BE9536 #5FBE36
monochromatic
#281B5F #3D288E #5136BE #7660D2 #9F8FDF

Accessibility & contrast

On white

8.01
#5136BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5136BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136BE
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136BE#FFFFFF#000000##FFFFFF
##5136BE1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C2
Deuteranopia (green-blind)
#004CBB
Tritanopia (blue-blind)
#175B76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5136be;
/* rgb */ color: rgb(81, 54, 190);
/* oklch */ color: oklch(45.4% 0.200 284.2);
Tailwind
colors: {
  custom: {
    50: '#8d70d3',
    500: '#5136be',
    950: '#000000',
  },
}
SCSS
$custom: #5136be;
$custom-light: #8d70d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5136be",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 190
  },
  "hsl": {
    "h": 251.912,
    "s": 55.738,
    "l": 47.843
  },
  "oklch": {
    "l": 0.45361,
    "c": 0.19977,
    "h": 284.2
  },
  "luminance": 0.08105
}

Semantic roles & 50–950 ramp

primary
#5136BE
secondary
#BCCA86
accent
#DF49C1
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5136BE

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

Preview Lab → · Contrast checker → · Palette generator →

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