#5135C4#5135C4

#5135C4 is a mid, highly saturated violet. Relative luminance 0.083; OKLCH L 45.8% C 0.208 H 283.5°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#5135C4
RGBrgb(81, 53, 196)
HSLhsl(252, 57%, 49%)
HSVhsv(252, 73%, 77%)
CMYKcmyk(58.7%, 73%, 0%, 23.1%)
CIE-LABlab(34.56, 50.02, -70.20)
CIE-LCHlch(34.56, 86.19, 305.47°)
OKLaboklab(45.78% 0.0485 -0.2022)
OKLCHoklch(45.78% 0.208 283.5)
XYZxyz(14.6272, 8.2801, 53.0413)
Luminance0.0828 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135C4 #A8C435
analogous
#3561C4 #5135C4 #9935C4
triadic
#5135C4 #C45135 #35C451
tetradic
#5135C4 #C43561 #A8C435 #35C499
square
#5135C4 #C43561 #A8C435 #35C499
split-complementary
#5135C4 #C49935 #61C435
monochromatic
#291B64 #3D2894 #5135C4 #7862D4 #A192E1

Accessibility & contrast

On white

7.91
#5135C4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5135C4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135C4
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135C4#FFFFFF#000000##FFFFFF
##5135C41.007.912.667.91
#FFFFFF7.911.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0056C8
Deuteranopia (green-blind)
#004CC1
Tritanopia (blue-blind)
#065C79
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5135c4;
/* rgb */ color: rgb(81, 53, 196);
/* oklch */ color: oklch(45.8% 0.208 283.5);
Tailwind
colors: {
  custom: {
    50: '#8f6fd7',
    500: '#5135c4',
    950: '#000000',
  },
}
SCSS
$custom: #5135c4;
$custom-light: #8f6fd7;
$custom-dark: #000000;
JSON
{
  "hex": "#5135c4",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 196
  },
  "hsl": {
    "h": 251.748,
    "s": 57.43,
    "l": 48.824
  },
  "oklch": {
    "l": 0.45783,
    "c": 0.20797,
    "h": 283.5
  },
  "luminance": 0.08281
}

Semantic roles & 50–950 ramp

primary
#5135C4
secondary
#BFCC88
accent
#E147C3
background
#F9F6FD
surface
#F2ECFA
border
#CCC7D3
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5135C4

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

Preview Lab → · Contrast checker → · Palette generator →

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