#5136D7#5136D7

#5136D7 is a mid, highly saturated violet. Relative luminance 0.093; OKLCH L 47.7% C 0.229 H 280.9°. Best body text is #FFFFFF at 7.35:1 contrast (WCAG AA passes).

Color values

HEX#5136D7
RGBrgb(81, 54, 215)
HSLhsl(250, 67%, 53%)
HSVhsv(250, 75%, 84%)
CMYKcmyk(62.3%, 74.9%, 0%, 15.7%)
CIE-LABlab(36.54, 55.10, -77.96)
CIE-LCHlch(36.54, 95.47, 305.25°)
OKLaboklab(47.73% 0.0434 -0.2249)
OKLCHoklch(47.73% 0.229 280.9)
XYZxyz(16.9744, 9.2927, 65.1760)
Luminance0.0929 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136D7 #BCD736
analogous
#366BD7 #5136D7 #A136D7
triadic
#5136D7 #D75136 #36D751
tetradic
#5136D7 #D7366B #BCD736 #36D7A1
square
#5136D7 #D7366B #BCD736 #36D7A1
split-complementary
#5136D7 #D7A136 #6BD736
monochromatic
#29187A #3A22AD #5136D7 #7D69E1 #A99CEB

Accessibility & contrast

On white

7.35
#5136D7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5136D7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136D7
7.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136D7#FFFFFF#000000##FFFFFF
##5136D71.007.352.867.35
#FFFFFF7.351.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CDC
Deuteranopia (green-blind)
#0050D4
Tritanopia (blue-blind)
#006484
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5136d7;
/* rgb */ color: rgb(81, 54, 215);
/* oklch */ color: oklch(47.7% 0.229 280.9);
Tailwind
colors: {
  custom: {
    50: '#9271e5',
    500: '#5136d7',
    950: '#000000',
  },
}
SCSS
$custom: #5136d7;
$custom-light: #9271e5;
$custom-dark: #000000;
JSON
{
  "hex": "#5136d7",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 215
  },
  "hsl": {
    "h": 250.062,
    "s": 66.805,
    "l": 52.745
  },
  "oklch": {
    "l": 0.47725,
    "c": 0.2291,
    "h": 280.9
  },
  "luminance": 0.09294
}

Semantic roles & 50–950 ramp

primary
#5136D7
secondary
#CCD792
accent
#EA3ECD
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5136D7

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

Preview Lab → · Contrast checker → · Palette generator →

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