#5135C5#5135C5

#5135C5 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.9% C 0.209 H 283.3°. Best body text is #FFFFFF at 7.88:1 contrast (WCAG AA passes).

Color values

HEX#5135C5
RGBrgb(81, 53, 197)
HSLhsl(252, 58%, 49%)
HSVhsv(252, 73%, 77%)
CMYKcmyk(58.9%, 73.1%, 0%, 22.7%)
CIE-LABlab(34.65, 50.31, -70.63)
CIE-LCHlch(34.65, 86.71, 305.46°)
OKLaboklab(45.88% 0.0483 -0.2035)
OKLCHoklch(45.88% 0.209 283.3)
XYZxyz(14.7414, 8.3258, 53.6427)
Luminance0.0833 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135C5 #A9C535
analogous
#3561C5 #5135C5 #9935C5
triadic
#5135C5 #C55135 #35C551
tetradic
#5135C5 #C53561 #A9C535 #35C599
square
#5135C5 #C53561 #A9C535 #35C599
split-complementary
#5135C5 #C59935 #61C535
monochromatic
#291B65 #3D2895 #5135C5 #7962D5 #A293E2

Accessibility & contrast

On white

7.88
#5135C5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.67
#5135C5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135C5
7.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135C5#FFFFFF#000000##FFFFFF
##5135C51.007.882.677.88
#FFFFFF7.881.0021.001.00
#0000002.6721.001.0021.00
##FFFFFF7.881.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5135c5;
/* rgb */ color: rgb(81, 53, 197);
/* oklch */ color: oklch(45.9% 0.209 283.3);
Tailwind
colors: {
  custom: {
    50: '#8f6fd8',
    500: '#5135c5',
    950: '#000000',
  },
}
SCSS
$custom: #5135c5;
$custom-light: #8f6fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#5135c5",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 197
  },
  "hsl": {
    "h": 251.667,
    "s": 57.6,
    "l": 49.02
  },
  "oklch": {
    "l": 0.45877,
    "c": 0.20915,
    "h": 283.3
  },
  "luminance": 0.08327
}

Semantic roles & 50–950 ramp

primary
#5135C5
secondary
#C0CD89
accent
#E147C3
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5135C5

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

Preview Lab → · Contrast checker → · Palette generator →

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