#5D41B3#5D41B3

#5D41B3 is a mid, vivid violet. Relative luminance 0.094; OKLCH L 47.1% C 0.172 H 289.4°. Best body text is #FFFFFF at 7.31:1 contrast (WCAG AA passes).

Color values

HEX#5D41B3
RGBrgb(93, 65, 179)
HSLhsl(255, 47%, 48%)
HSVhsv(255, 64%, 70%)
CMYKcmyk(48%, 63.7%, 0%, 29.8%)
CIE-LABlab(36.67, 40.37, -56.69)
CIE-LCHlch(36.67, 69.60, 305.46°)
OKLaboklab(47.13% 0.0572 -0.1623)
OKLCHoklch(47.13% 0.172 289.4)
XYZxyz(14.5389, 9.3618, 43.6800)
Luminance0.0936 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D41B3 #97B341
analogous
#415EB3 #5D41B3 #9641B3
triadic
#5D41B3 #B35D41 #41B35D
tetradic
#5D41B3 #B3415E #97B341 #41B396
square
#5D41B3 #B3415E #97B341 #41B396
split-complementary
#5D41B3 #B39641 #5EB341
monochromatic
#2E2059 #463186 #5D41B3 #8069C8 #A696D9

Accessibility & contrast

On white

7.31
#5D41B3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#5D41B3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D41B3
7.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D41B3#FFFFFF#000000##FFFFFF
##5D41B31.007.312.877.31
#FFFFFF7.311.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059B7
Deuteranopia (green-blind)
#0054B1
Tritanopia (blue-blind)
#415C74
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #5d41b3;
/* rgb */ color: rgb(93, 65, 179);
/* oklch */ color: oklch(47.1% 0.172 289.4);
Tailwind
colors: {
  custom: {
    50: '#9277cb',
    500: '#5d41b3',
    950: '#000000',
  },
}
SCSS
$custom: #5d41b3;
$custom-light: #9277cb;
$custom-dark: #000000;
JSON
{
  "hex": "#5d41b3",
  "rgb": {
    "r": 93,
    "g": 65,
    "b": 179
  },
  "hsl": {
    "h": 254.737,
    "s": 46.721,
    "l": 47.843
  },
  "oklch": {
    "l": 0.47129,
    "c": 0.17204,
    "h": 289.4
  },
  "luminance": 0.09362
}

Semantic roles & 50–950 ramp

primary
#5D41B3
secondary
#B6C48B
accent
#D651B6
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0913
muted
#7E7B82

Preview Lab

Preview with #5D41B3

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

Preview Lab → · Contrast checker → · Palette generator →

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