#5135CC#5135CC

#5135CC is a mid, highly saturated violet. Relative luminance 0.087; OKLCH L 46.5% C 0.217 H 282.4°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5135CC
RGBrgb(81, 53, 204)
HSLhsl(251, 60%, 50%)
HSVhsv(251, 74%, 80%)
CMYKcmyk(60.3%, 74%, 0%, 20%)
CIE-LABlab(35.31, 52.37, -73.63)
CIE-LCHlch(35.31, 90.36, 305.42°)
OKLaboklab(46.54% 0.0467 -0.2123)
OKLCHoklch(46.54% 0.217 282.4)
XYZxyz(15.5621, 8.6541, 57.9654)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135CC #B0CC35
analogous
#3564CC #5135CC #9D35CC
triadic
#5135CC #CC5135 #35CC51
tetradic
#5135CC #CC3564 #B0CC35 #35CC9D
square
#5135CC #CC3564 #B0CC35 #35CC9D
split-complementary
#5135CC #CC9D35 #64CC35
monochromatic
#2A1B6B #3D279C #5135CC #7B66D8 #A597E5

Accessibility & contrast

On white

7.69
#5135CC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5135CC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135CC
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135CC#FFFFFF#000000##FFFFFF
##5135CC1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058D0
Deuteranopia (green-blind)
#004EC9
Tritanopia (blue-blind)
#00607E
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5135cc;
/* rgb */ color: rgb(81, 53, 204);
/* oklch */ color: oklch(46.5% 0.217 282.4);
Tailwind
colors: {
  custom: {
    50: '#9070dd',
    500: '#5135cc',
    950: '#000000',
  },
}
SCSS
$custom: #5135cc;
$custom-light: #9070dd;
$custom-dark: #000000;
JSON
{
  "hex": "#5135cc",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 204
  },
  "hsl": {
    "h": 251.126,
    "s": 59.684,
    "l": 50.392
  },
  "oklch": {
    "l": 0.4654,
    "c": 0.21735,
    "h": 282.4
  },
  "luminance": 0.08655
}

Semantic roles & 50–950 ramp

primary
#5135CC
secondary
#C4D08D
accent
#E345C6
background
#F9F6FD
surface
#F2ECFB
border
#CCC7D4
text
#0E0815
muted
#7E7B83

Preview Lab

Preview with #5135CC

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

Preview Lab → · Contrast checker → · Palette generator →

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