#5134D1#5134D1

#5134D1 is a mid, highly saturated violet. Relative luminance 0.088; OKLCH L 46.9% C 0.224 H 281.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#5134D1
RGBrgb(81, 52, 209)
HSLhsl(251, 63%, 51%)
HSVhsv(251, 75%, 82%)
CMYKcmyk(61.2%, 75.1%, 0%, 18%)
CIE-LABlab(35.61, 54.34, -76.03)
CIE-LCHlch(35.61, 93.46, 305.55°)
OKLaboklab(46.9% 0.0461 -0.2193)
OKLCHoklch(46.9% 0.224 281.9)
XYZxyz(16.1264, 8.8076, 61.1595)
Luminance0.0881 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5134D1 #B4D134
analogous
#3465D1 #5134D1 #9F34D1
triadic
#5134D1 #D15134 #34D151
tetradic
#5134D1 #D13465 #B4D134 #34D19F
square
#5134D1 #D13465 #B4D134 #34D19F
split-complementary
#5134D1 #D19F34 #65D134
monochromatic
#2A1A71 #3C25A3 #5134D1 #7C66DC #A798E8

Accessibility & contrast

On white

7.60
#5134D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#5134D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5134D1
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5134D1#FFFFFF#000000##FFFFFF
##5134D11.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059D5
Deuteranopia (green-blind)
#004ECE
Tritanopia (blue-blind)
#006181
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #5134d1;
/* rgb */ color: rgb(81, 52, 209);
/* oklch */ color: oklch(46.9% 0.224 281.9);
Tailwind
colors: {
  custom: {
    50: '#916fe0',
    500: '#5134d1',
    950: '#000000',
  },
}
SCSS
$custom: #5134d1;
$custom-light: #916fe0;
$custom-dark: #000000;
JSON
{
  "hex": "#5134d1",
  "rgb": {
    "r": 81,
    "g": 52,
    "b": 209
  },
  "hsl": {
    "h": 251.083,
    "s": 63.052,
    "l": 51.176
  },
  "oklch": {
    "l": 0.46897,
    "c": 0.2241,
    "h": 281.9
  },
  "luminance": 0.08809
}

Semantic roles & 50–950 ramp

primary
#5134D1
secondary
#C6D38E
accent
#E642C8
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5134D1

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

Preview Lab → · Contrast checker → · Palette generator →

#5134D1 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva