#5136C1#5136C1

#5136C1 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.6% C 0.203 H 283.8°. Best body text is #FFFFFF at 7.93:1 contrast (WCAG AA passes).

Color values

HEX#5136C1
RGBrgb(81, 54, 193)
HSLhsl(252, 56%, 48%)
HSVhsv(252, 72%, 76%)
CMYKcmyk(58%, 72%, 0%, 24.3%)
CIE-LABlab(34.47, 48.60, -68.58)
CIE-LCHlch(34.47, 84.06, 305.32°)
OKLaboklab(45.64% 0.0484 -0.1975)
OKLCHoklch(45.64% 0.203 283.8)
XYZxyz(14.3352, 8.2370, 51.2763)
Luminance0.0824 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136C1 #A6C136
analogous
#3660C1 #5136C1 #9636C1
triadic
#5136C1 #C15136 #36C151
tetradic
#5136C1 #C13660 #A6C136 #36C196
square
#5136C1 #C13660 #A6C136 #36C196
split-complementary
#5136C1 #C19636 #60C136
monochromatic
#291B61 #3D2991 #5136C1 #7761D3 #A191E0

Accessibility & contrast

On white

7.93
#5136C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5136C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136C1
7.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136C1#FFFFFF#000000##FFFFFF
##5136C11.007.932.657.93
#FFFFFF7.931.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C5
Deuteranopia (green-blind)
#004CBE
Tritanopia (blue-blind)
#105C78
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5136c1;
/* rgb */ color: rgb(81, 54, 193);
/* oklch */ color: oklch(45.6% 0.203 283.8);
Tailwind
colors: {
  custom: {
    50: '#8e70d5',
    500: '#5136c1',
    950: '#000000',
  },
}
SCSS
$custom: #5136c1;
$custom-light: #8e70d5;
$custom-dark: #000000;
JSON
{
  "hex": "#5136c1",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 193
  },
  "hsl": {
    "h": 251.655,
    "s": 56.275,
    "l": 48.431
  },
  "oklch": {
    "l": 0.45637,
    "c": 0.20337,
    "h": 283.8
  },
  "luminance": 0.08238
}

Semantic roles & 50–950 ramp

primary
#5136C1
secondary
#BECB88
accent
#E048C2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0814
muted
#7E7B83

Preview Lab

Preview with #5136C1

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

Preview Lab → · Contrast checker → · Palette generator →

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