#5136C0#5136C0

#5136C0 is a mid, highly saturated violet. Relative luminance 0.082; OKLCH L 45.5% C 0.202 H 283.9°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5136C0
RGBrgb(81, 54, 192)
HSLhsl(252, 56%, 48%)
HSVhsv(252, 72%, 75%)
CMYKcmyk(57.8%, 71.9%, 0%, 24.7%)
CIE-LABlab(34.38, 48.30, -68.14)
CIE-LCHlch(34.38, 83.53, 305.33°)
OKLaboklab(45.55% 0.0486 -0.1962)
OKLCHoklch(45.55% 0.202 283.9)
XYZxyz(14.2240, 8.1925, 50.6907)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136C0 #A5C036
analogous
#3660C0 #5136C0 #9636C0
triadic
#5136C0 #C05136 #36C051
tetradic
#5136C0 #C03660 #A5C036 #36C096
square
#5136C0 #C03660 #A5C036 #36C096
split-complementary
#5136C0 #C09636 #60C036
monochromatic
#291B60 #3D2990 #5136C0 #7761D2 #A090E0

Accessibility & contrast

On white

7.96
#5136C0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5136C0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136C0
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136C0#FFFFFF#000000##FFFFFF
##5136C01.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C4
Deuteranopia (green-blind)
#004CBD
Tritanopia (blue-blind)
#125B77
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5136c0;
/* rgb */ color: rgb(81, 54, 192);
/* oklch */ color: oklch(45.5% 0.202 283.9);
Tailwind
colors: {
  custom: {
    50: '#8e70d4',
    500: '#5136c0',
    950: '#000000',
  },
}
SCSS
$custom: #5136c0;
$custom-light: #8e70d4;
$custom-dark: #000000;
JSON
{
  "hex": "#5136c0",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 192
  },
  "hsl": {
    "h": 251.739,
    "s": 56.098,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45545,
    "c": 0.20217,
    "h": 283.9
  },
  "luminance": 0.08193
}

Semantic roles & 50–950 ramp

primary
#5136C0
secondary
#BDCB87
accent
#DF48C2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0D0814
muted
#7E7B83

Preview Lab

Preview with #5136C0

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

Preview Lab → · Contrast checker → · Palette generator →

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