#5136D3#5136D3

#5136D3 is a mid, highly saturated violet. Relative luminance 0.091; OKLCH L 47.3% C 0.225 H 281.4°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#5136D3
RGBrgb(81, 54, 211)
HSLhsl(250, 64%, 52%)
HSVhsv(250, 74%, 83%)
CMYKcmyk(61.6%, 74.4%, 0%, 17.3%)
CIE-LABlab(36.16, 53.92, -76.29)
CIE-LCHlch(36.16, 93.43, 305.25°)
OKLaboklab(47.34% 0.0444 -0.2201)
OKLCHoklch(47.34% 0.225 281.4)
XYZxyz(16.4667, 9.0896, 62.5021)
Luminance0.0909 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5136D3 #B8D336
analogous
#366AD3 #5136D3 #9F36D3
triadic
#5136D3 #D35136 #36D351
tetradic
#5136D3 #D3366A #B8D336 #36D39F
square
#5136D3 #D3366A #B8D336 #36D39F
split-complementary
#5136D3 #D39F36 #6AD336
monochromatic
#291A75 #3B25A7 #5136D3 #7C68DE #A89AE9

Accessibility & contrast

On white

7.45
#5136D3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#5136D3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5136D3
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5136D3#FFFFFF#000000##FFFFFF
##5136D31.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AD8
Deuteranopia (green-blind)
#004FD0
Tritanopia (blue-blind)
#006382
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5136d3;
/* rgb */ color: rgb(81, 54, 211);
/* oklch */ color: oklch(47.3% 0.225 281.4);
Tailwind
colors: {
  custom: {
    50: '#9171e2',
    500: '#5136d3',
    950: '#000000',
  },
}
SCSS
$custom: #5136d3;
$custom-light: #9171e2;
$custom-dark: #000000;
JSON
{
  "hex": "#5136d3",
  "rgb": {
    "r": 81,
    "g": 54,
    "b": 211
  },
  "hsl": {
    "h": 250.318,
    "s": 64.082,
    "l": 51.961
  },
  "oklch": {
    "l": 0.47338,
    "c": 0.2245,
    "h": 281.4
  },
  "luminance": 0.09091
}

Semantic roles & 50–950 ramp

primary
#5136D3
secondary
#C9D590
accent
#E741CA
background
#F9F7FE
surface
#F2EDFC
border
#CCC8D5
text
#0E0816
muted
#7E7B84

Preview Lab

Preview with #5136D3

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

Preview Lab → · Contrast checker → · Palette generator →

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