#5136BD#5136BD

#5136BD is a mid, vivid violet. Relative luminance 0.081; OKLCH L 45.3% C 0.199 H 284.3°. Best body text is #FFFFFF at 8.04:1 contrast (WCAG AA passes).

Color values

HEX#5136BD
RGBrgb(81, 54, 189)
HSLhsl(252, 56%, 48%)
HSVhsv(252, 71%, 74%)
CMYKcmyk(57.1%, 71.4%, 0%, 25.9%)
CIE-LABlab(34.11, 47.41, -66.83)
CIE-LCHlch(34.11, 81.93, 305.35°)
OKLaboklab(45.27% 0.0492 -0.1924)
OKLCHoklch(45.27% 0.199 284.3)
XYZxyz(13.8950, 8.0609, 48.9580)
Luminance0.0806 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136BD #A2BD36
analogous
#365EBD #5136BD #9536BD
triadic
#5136BD #BD5136 #36BD51
tetradic
#5136BD #BD365E #A2BD36 #36BD95
square
#5136BD #BD365E #A2BD36 #36BD95
split-complementary
#5136BD #BD9536 #5EBD36
monochromatic
#281B5E #3D288D #5136BD #765FD1 #9F8FDF

Accessibility & contrast

On white

8.04
#5136BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5136BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136BD
8.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136BD#FFFFFF#000000##FFFFFF
##5136BD1.008.042.618.04
#FFFFFF8.041.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054C1
Deuteranopia (green-blind)
#004CBA
Tritanopia (blue-blind)
#195A76
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5136bd;
/* rgb */ color: rgb(81, 54, 189);
/* oklch */ color: oklch(45.3% 0.199 284.3);
Tailwind
colors: {
  custom: {
    50: '#8d70d2',
    500: '#5136bd',
    950: '#000000',
  },
}
SCSS
$custom: #5136bd;
$custom-light: #8d70d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5136bd",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 189
  },
  "hsl": {
    "h": 252,
    "s": 55.556,
    "l": 47.647
  },
  "oklch": {
    "l": 0.45269,
    "c": 0.19857,
    "h": 284.3
  },
  "luminance": 0.08062
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5136BD

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

Preview Lab → · Contrast checker → · Palette generator →

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