#5135CA#5135CA

#5135CA is a mid, highly saturated violet. Relative luminance 0.086; OKLCH L 46.4% C 0.215 H 282.7°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5135CA
RGBrgb(81, 53, 202)
HSLhsl(251, 58%, 50%)
HSVhsv(251, 74%, 79%)
CMYKcmyk(59.9%, 73.8%, 0%, 20.8%)
CIE-LABlab(35.12, 51.78, -72.78)
CIE-LCHlch(35.12, 89.32, 305.43°)
OKLaboklab(46.35% 0.0471 -0.2098)
OKLCHoklch(46.35% 0.215 282.7)
XYZxyz(15.3238, 8.5588, 56.7102)
Luminance0.0856 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135CA #AECA35
analogous
#3564CA #5135CA #9B35CA
triadic
#5135CA #CA5135 #35CA51
tetradic
#5135CA #CA3564 #AECA35 #35CA9B
square
#5135CA #CA3564 #AECA35 #35CA9B
split-complementary
#5135CA #CA9B35 #64CA35
monochromatic
#2A1C69 #3E289A #5135CA #7B65D7 #A596E3

Accessibility & contrast

On white

7.74
#5135CA on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5135CA on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135CA
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135CA#FFFFFF#000000##FFFFFF
##5135CA1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CE
Deuteranopia (green-blind)
#004DC7
Tritanopia (blue-blind)
#005F7D
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5135ca;
/* rgb */ color: rgb(81, 53, 202);
/* oklch */ color: oklch(46.4% 0.215 282.7);
Tailwind
colors: {
  custom: {
    50: '#9070db',
    500: '#5135ca',
    950: '#000000',
  },
}
SCSS
$custom: #5135ca;
$custom-light: #9070db;
$custom-dark: #000000;
JSON
{
  "hex": "#5135ca",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 202
  },
  "hsl": {
    "h": 251.275,
    "s": 58.431,
    "l": 50
  },
  "oklch": {
    "l": 0.4635,
    "c": 0.21502,
    "h": 282.7
  },
  "luminance": 0.0856
}

Semantic roles & 50–950 ramp

primary
#5135CA
secondary
#C2CF8C
accent
#E246C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5135CA

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

Preview Lab → · Contrast checker → · Palette generator →

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