#5136C5#5136C5

#5136C5 is a mid, highly saturated violet. Relative luminance 0.084; OKLCH L 46.0% C 0.208 H 283.2°. Best body text is #FFFFFF at 7.82:1 contrast (WCAG AA passes).

Color values

HEX#5136C5
RGBrgb(81, 54, 197)
HSLhsl(251, 57%, 49%)
HSVhsv(251, 73%, 77%)
CMYKcmyk(58.9%, 72.6%, 0%, 22.7%)
CIE-LABlab(34.84, 49.79, -70.32)
CIE-LCHlch(34.84, 86.16, 305.30°)
OKLaboklab(46.01% 0.0475 -0.2026)
OKLCHoklch(46.01% 0.208 283.2)
XYZxyz(14.7874, 8.4179, 53.6581)
Luminance0.0842 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136C5 #AAC536
analogous
#3662C5 #5136C5 #9936C5
triadic
#5136C5 #C55136 #36C551
tetradic
#5136C5 #C53662 #AAC536 #36C599
square
#5136C5 #C53662 #AAC536 #36C599
split-complementary
#5136C5 #C59936 #62C536
monochromatic
#2A1C65 #3D2995 #5136C5 #7964D4 #A294E2

Accessibility & contrast

On white

7.82
#5136C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.68
#5136C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136C5
7.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136C5#FFFFFF#000000##FFFFFF
##5136C51.007.822.687.82
#FFFFFF7.821.0021.001.00
#0000002.6821.001.0021.00
##FFFFFF7.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C9
Deuteranopia (green-blind)
#004DC2
Tritanopia (blue-blind)
#025D7A
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5136c5;
/* rgb */ color: rgb(81, 54, 197);
/* oklch */ color: oklch(46.0% 0.208 283.2);
Tailwind
colors: {
  custom: {
    50: '#8f70d8',
    500: '#5136c5',
    950: '#000000',
  },
}
SCSS
$custom: #5136c5;
$custom-light: #8f70d8;
$custom-dark: #000000;
JSON
{
  "hex": "#5136c5",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 197
  },
  "hsl": {
    "h": 251.329,
    "s": 56.972,
    "l": 49.216
  },
  "oklch": {
    "l": 0.46009,
    "c": 0.20812,
    "h": 283.2
  },
  "luminance": 0.08419
}

Semantic roles & 50–950 ramp

primary
#5136C5
secondary
#C0CD8A
accent
#E048C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5136C5

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

Preview Lab → · Contrast checker → · Palette generator →

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