#5135A2#5135A2

#5135A2 is a dark, vivid violet. Relative luminance 0.069; OKLCH L 42.7% C 0.167 H 289.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#5135A2
RGBrgb(81, 53, 162)
HSLhsl(255, 51%, 42%)
HSVhsv(255, 67%, 64%)
CMYKcmyk(50%, 67.3%, 0%, 36.5%)
CIE-LABlab(31.59, 39.91, -54.85)
CIE-LCHlch(31.59, 67.84, 306.04°)
OKLaboklab(42.75% 0.0548 -0.1572)
OKLCHoklch(42.75% 0.167 289.2)
XYZxyz(11.1862, 6.9037, 34.9186)
Luminance0.0690 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135A2 #86A235
analogous
#354FA2 #5135A2 #8835A2
triadic
#5135A2 #A25135 #35A251
tetradic
#5135A2 #A2354F #86A235 #35A288
square
#5135A2 #A2354F #86A235 #35A288
split-complementary
#5135A2 #A28835 #4FA235
monochromatic
#231746 #3A2674 #5135A2 #6D4FC5 #937DD4

Accessibility & contrast

On white

8.82
#5135A2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#5135A2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135A2
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135A2#FFFFFF#000000##FFFFFF
##5135A21.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004DA5
Deuteranopia (green-blind)
#0048A0
Tritanopia (blue-blind)
#355067
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5135a2;
/* rgb */ color: rgb(81, 53, 162);
/* oklch */ color: oklch(42.7% 0.167 289.2);
Tailwind
colors: {
  custom: {
    50: '#896ebe',
    500: '#5135a2',
    950: '#000000',
  },
}
SCSS
$custom: #5135a2;
$custom-light: #896ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#5135a2",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 162
  },
  "hsl": {
    "h": 255.413,
    "s": 50.698,
    "l": 42.157
  },
  "oklch": {
    "l": 0.42747,
    "c": 0.16652,
    "h": 289.2
  },
  "luminance": 0.06904
}

Semantic roles & 50–950 ramp

primary
#5135A2
secondary
#ABBD75
accent
#DA4EB6
background
#F8F6FB
surface
#F0ECF7
border
#CBC7D0
text
#0C0712
muted
#7D7A81

Preview Lab

Preview with #5135A2

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

Preview Lab → · Contrast checker → · Palette generator →

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