#5D41B2#5D41B2

#5D41B2 is a mid, vivid violet. Relative luminance 0.093; OKLCH L 47.0% C 0.171 H 289.6°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#5D41B2
RGBrgb(93, 65, 178)
HSLhsl(255, 47%, 48%)
HSVhsv(255, 63%, 70%)
CMYKcmyk(47.8%, 63.5%, 0%, 30.2%)
CIE-LABlab(36.60, 40.08, -56.22)
CIE-LCHlch(36.60, 69.04, 305.48°)
OKLaboklab(47.05% 0.0573 -0.1609)
OKLCHoklch(47.05% 0.171 289.6)
XYZxyz(14.4381, 9.3215, 43.1493)
Luminance0.0932 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41B2 #96B241
analogous
#415EB2 #5D41B2 #9541B2
triadic
#5D41B2 #B25D41 #41B25D
tetradic
#5D41B2 #B2415E #96B241 #41B295
square
#5D41B2 #B2415E #96B241 #41B295
split-complementary
#5D41B2 #B29541 #5EB241
monochromatic
#2E2058 #463185 #5D41B2 #8068C8 #A695D8

Accessibility & contrast

On white

7.33
#5D41B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.86
#5D41B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D41B2
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41B2#FFFFFF#000000##FFFFFF
##5D41B21.007.332.867.33
#FFFFFF7.331.0021.001.00
#0000002.8621.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058B6
Deuteranopia (green-blind)
#0053B0
Tritanopia (blue-blind)
#425C73
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d41b2;
/* rgb */ color: rgb(93, 65, 178);
/* oklch */ color: oklch(47.0% 0.171 289.6);
Tailwind
colors: {
  custom: {
    50: '#9277ca',
    500: '#5d41b2',
    950: '#000000',
  },
}
SCSS
$custom: #5d41b2;
$custom-light: #9277ca;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41b2",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 178
  },
  "hsl": {
    "h": 254.867,
    "s": 46.502,
    "l": 47.647
  },
  "oklch": {
    "l": 0.4705,
    "c": 0.17077,
    "h": 289.6
  },
  "luminance": 0.09322
}

Semantic roles & 50–950 ramp

primary
#5D41B2
secondary
#B6C48B
accent
#D652B5
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #5D41B2

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

Preview Lab → · Contrast checker → · Palette generator →

#5D41B2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva