#5135C9#5135C9

#5135C9 is a mid, highly saturated violet. Relative luminance 0.085; OKLCH L 46.3% C 0.214 H 282.8°. Best body text is #FFFFFF at 7.77:1 contrast (WCAG AA passes).

Color values

HEX#5135C9
RGBrgb(81, 53, 201)
HSLhsl(251, 58%, 50%)
HSVhsv(251, 74%, 79%)
CMYKcmyk(59.7%, 73.6%, 0%, 21.2%)
CIE-LABlab(35.03, 51.49, -72.35)
CIE-LCHlch(35.03, 88.80, 305.44°)
OKLaboklab(46.26% 0.0474 -0.2085)
OKLCHoklch(46.26% 0.214 282.8)
XYZxyz(15.2058, 8.5116, 56.0886)
Luminance0.0851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135C9 #ADC935
analogous
#3563C9 #5135C9 #9B35C9
triadic
#5135C9 #C95135 #35C951
tetradic
#5135C9 #C93563 #ADC935 #35C99B
square
#5135C9 #C93563 #ADC935 #35C99B
split-complementary
#5135C9 #C99B35 #63C935
monochromatic
#2A1B68 #3D2899 #5135C9 #7A65D6 #A495E3

Accessibility & contrast

On white

7.77
#5135C9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.70
#5135C9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135C9
7.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135C9#FFFFFF#000000##FFFFFF
##5135C91.007.772.707.77
#FFFFFF7.771.0021.001.00
#0000002.7021.001.0021.00
##FFFFFF7.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057CD
Deuteranopia (green-blind)
#004DC6
Tritanopia (blue-blind)
#005E7C
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5135c9;
/* rgb */ color: rgb(81, 53, 201);
/* oklch */ color: oklch(46.3% 0.214 282.8);
Tailwind
colors: {
  custom: {
    50: '#8f70db',
    500: '#5135c9',
    950: '#000000',
  },
}
SCSS
$custom: #5135c9;
$custom-light: #8f70db;
$custom-dark: #000000;
JSON
{
  "hex": "#5135c9",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 201
  },
  "hsl": {
    "h": 251.351,
    "s": 58.268,
    "l": 49.804
  },
  "oklch": {
    "l": 0.46255,
    "c": 0.21385,
    "h": 282.8
  },
  "luminance": 0.08513
}

Semantic roles & 50–950 ramp

primary
#5135C9
secondary
#C2CE8B
accent
#E146C4
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5135C9

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

Preview Lab → · Contrast checker → · Palette generator →

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