#5136CD#5136CD

#5136CD is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.8% C 0.218 H 282.1°. Best body text is #FFFFFF at 7.61:1 contrast (WCAG AA passes).

Color values

HEX#5136CD
RGBrgb(81, 54, 205)
HSLhsl(251, 60%, 51%)
HSVhsv(251, 74%, 80%)
CMYKcmyk(60.5%, 73.7%, 0%, 19.6%)
CIE-LABlab(35.59, 52.16, -73.76)
CIE-LCHlch(35.59, 90.33, 305.27°)
OKLaboklab(46.76% 0.0458 -0.2127)
OKLCHoklch(46.76% 0.218 282.1)
XYZxyz(15.7285, 8.7943, 58.6144)
Luminance0.0880 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136CD #B2CD36
analogous
#3667CD #5136CD #9C36CD
triadic
#5136CD #CD5136 #36CD51
tetradic
#5136CD #CD3667 #B2CD36 #36CD9C
square
#5136CD #CD3667 #B2CD36 #36CD9C
split-complementary
#5136CD #CD9C36 #67CD36
monochromatic
#2A1B6D #3D279E #5136CD #7B67D9 #A698E5

Accessibility & contrast

On white

7.61
#5136CD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5136CD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136CD
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136CD#FFFFFF#000000##FFFFFF
##5136CD1.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D1
Deuteranopia (green-blind)
#004ECA
Tritanopia (blue-blind)
#00607F
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5136cd;
/* rgb */ color: rgb(81, 54, 205);
/* oklch */ color: oklch(46.8% 0.218 282.1);
Tailwind
colors: {
  custom: {
    50: '#9070de',
    500: '#5136cd',
    950: '#000000',
  },
}
SCSS
$custom: #5136cd;
$custom-light: #9070de;
$custom-dark: #000000;
JSON
{
  "hex": "#5136cd",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 205
  },
  "hsl": {
    "h": 250.728,
    "s": 60.159,
    "l": 50.784
  },
  "oklch": {
    "l": 0.46764,
    "c": 0.21753,
    "h": 282.1
  },
  "luminance": 0.08795
}

Semantic roles & 50–950 ramp

primary
#5136CD
secondary
#C5D18E
accent
#E344C7
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5136CD

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

Preview Lab → · Contrast checker → · Palette generator →

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