#5135B3#5135B3

#5135B3 is a dark, vivid violet. Relative luminance 0.075; OKLCH L 44.2% C 0.188 H 286.1°. Best body text is #FFFFFF at 8.37:1 contrast (WCAG AA passes).

Color values

HEX#5135B3
RGBrgb(81, 53, 179)
HSLhsl(253, 54%, 45%)
HSVhsv(253, 70%, 70%)
CMYKcmyk(54.7%, 70.4%, 0%, 29.8%)
CIE-LABlab(33.03, 44.97, -62.68)
CIE-LCHlch(33.03, 77.15, 305.66°)
OKLaboklab(44.23% 0.052 -0.1802)
OKLCHoklch(44.23% 0.188 286.1)
XYZxyz(12.8007, 7.5495, 43.4218)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5135B3 #97B335
analogous
#3558B3 #5135B3 #9035B3
triadic
#5135B3 #B35135 #35B351
tetradic
#5135B3 #B33558 #97B335 #35B390
square
#5135B3 #B33558 #97B335 #35B390
split-complementary
#5135B3 #B39035 #58B335
monochromatic
#261955 #3C2784 #5135B3 #7258CD #9A87DB

Accessibility & contrast

On white

8.37
#5135B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#5135B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5135B3
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5135B3#FFFFFF#000000##FFFFFF
##5135B31.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#004AB1
Tritanopia (blue-blind)
#275670
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #5135b3;
/* rgb */ color: rgb(81, 53, 179);
/* oklch */ color: oklch(44.2% 0.188 286.1);
Tailwind
colors: {
  custom: {
    50: '#8c6fcb',
    500: '#5135b3',
    950: '#000000',
  },
}
SCSS
$custom: #5135b3;
$custom-light: #8c6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#5135b3",
  "rgb": {
    "r": 81,
    "g": 53,
    "b": 179
  },
  "hsl": {
    "h": 253.333,
    "s": 54.31,
    "l": 45.49
  },
  "oklch": {
    "l": 0.44226,
    "c": 0.18759,
    "h": 286.1
  },
  "luminance": 0.0755
}

Semantic roles & 50–950 ramp

primary
#5135B3
secondary
#B6C57F
accent
#DE4ABD
background
#F9F6FC
surface
#F1ECF9
border
#CBC7D2
text
#0D0713
muted
#7E7A82

Preview Lab

Preview with #5135B3

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

Preview Lab → · Contrast checker → · Palette generator →

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