#5135D1#5135D1

#5135D1 is a mid, highly saturated violet. Relative luminance 0.089; OKLCH L 47.0% C 0.223 H 281.8°. Best body text is #FFFFFF at 7.55:1 contrast (WCAG AA passes).

Color values

HEX#5135D1
RGBrgb(81, 53, 209)
HSLhsl(251, 63%, 51%)
HSVhsv(251, 75%, 82%)
CMYKcmyk(61.2%, 74.6%, 0%, 18%)
CIE-LABlab(35.79, 53.84, -75.74)
CIE-LCHlch(35.79, 92.93, 305.41°)
OKLaboklab(47.02% 0.0455 -0.2185)
OKLCHoklch(47.02% 0.223 281.8)
XYZxyz(16.1715, 8.8978, 61.1745)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135D1 #B5D135
analogous
#3567D1 #5135D1 #9F35D1
triadic
#5135D1 #D15135 #35D151
tetradic
#5135D1 #D13567 #B5D135 #35D19F
square
#5135D1 #D13567 #B5D135 #35D19F
split-complementary
#5135D1 #D19F35 #67D135
monochromatic
#2A1A72 #3C25A4 #5135D1 #7C67DC #A799E8

Accessibility & contrast

On white

7.55
#5135D1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#5135D1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135D1
7.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135D1#FFFFFF#000000##FFFFFF
##5135D11.007.552.787.55
#FFFFFF7.551.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.551.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5135d1;
/* rgb */ color: rgb(81, 53, 209);
/* oklch */ color: oklch(47.0% 0.223 281.8);
Tailwind
colors: {
  custom: {
    50: '#9170e0',
    500: '#5135d1',
    950: '#000000',
  },
}
SCSS
$custom: #5135d1;
$custom-light: #9170e0;
$custom-dark: #000000;
JSON
{
  "hex": "#5135d1",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 209
  },
  "hsl": {
    "h": 250.769,
    "s": 62.903,
    "l": 51.373
  },
  "oklch": {
    "l": 0.4702,
    "c": 0.22314,
    "h": 281.8
  },
  "luminance": 0.08899
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5135D1

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

Preview Lab → · Contrast checker → · Palette generator →

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