#5135C1#5135C1

#5135C1 is a mid, highly saturated violet. Relative luminance 0.081; OKLCH L 45.5% C 0.204 H 283.9°. Best body text is #FFFFFF at 7.99:1 contrast (WCAG AA passes).

Color values

HEX#5135C1
RGBrgb(81, 53, 193)
HSLhsl(252, 57%, 48%)
HSVhsv(252, 73%, 76%)
CMYKcmyk(58%, 72.5%, 0%, 24.3%)
CIE-LABlab(34.28, 49.13, -68.89)
CIE-LCHlch(34.28, 84.61, 305.49°)
OKLaboklab(45.5% 0.0491 -0.1984)
OKLCHoklch(45.5% 0.204 283.9)
XYZxyz(14.2891, 8.1449, 51.2609)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135C1 #A5C135
analogous
#355FC1 #5135C1 #9735C1
triadic
#5135C1 #C15135 #35C151
tetradic
#5135C1 #C1355F #A5C135 #35C197
square
#5135C1 #C1355F #A5C135 #35C197
split-complementary
#5135C1 #C19735 #5FC135
monochromatic
#291B61 #3D2891 #5135C1 #7760D3 #A090E0

Accessibility & contrast

On white

7.99
#5135C1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#5135C1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135C1
7.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135C1#FFFFFF#000000##FFFFFF
##5135C11.007.992.637.99
#FFFFFF7.991.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055C5
Deuteranopia (green-blind)
#004CBE
Tritanopia (blue-blind)
#105B78
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5135c1;
/* rgb */ color: rgb(81, 53, 193);
/* oklch */ color: oklch(45.5% 0.204 283.9);
Tailwind
colors: {
  custom: {
    50: '#8e6fd5',
    500: '#5135c1',
    950: '#000000',
  },
}
SCSS
$custom: #5135c1;
$custom-light: #8e6fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#5135c1",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 193
  },
  "hsl": {
    "h": 252,
    "s": 56.911,
    "l": 48.235
  },
  "oklch": {
    "l": 0.45503,
    "c": 0.20442,
    "h": 283.9
  },
  "luminance": 0.08146
}

Semantic roles & 50–950 ramp

primary
#5135C1
secondary
#BDCB87
accent
#E048C2
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0714
muted
#7E7A83

Preview Lab

Preview with #5135C1

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

Preview Lab → · Contrast checker → · Palette generator →

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