#5D40BB#5D40BB

#5D40BB is a mid, vivid violet. Relative luminance 0.096; OKLCH L 47.6% C 0.183 H 288.2°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#5D40BB
RGBrgb(93, 64, 187)
HSLhsl(254, 49%, 49%)
HSVhsv(254, 66%, 73%)
CMYKcmyk(50.3%, 65.8%, 0%, 26.7%)
CIE-LABlab(37.08, 43.28, -60.75)
CIE-LCHlch(37.08, 74.59, 305.47°)
OKLaboklab(47.62% 0.0574 -0.1742)
OKLCHoklch(47.62% 0.183 288.2)
XYZxyz(15.3146, 9.5811, 48.0465)
Luminance0.0958 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40BB #9EBB40
analogous
#4061BB #5D40BB #9B40BB
triadic
#5D40BB #BB5D40 #40BB5D
tetradic
#5D40BB #BB4061 #9EBB40 #40BB9B
square
#5D40BB #BB4061 #9EBB40 #40BB9B
split-complementary
#5D40BB #BB9B40 #61BB40
monochromatic
#302160 #46308D #5D40BB #826CCD #A999DC

Accessibility & contrast

On white

7.20
#5D40BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#5D40BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5D40BB
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40BB#FFFFFF#000000##FFFFFF
##5D40BB1.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ABF
Deuteranopia (green-blind)
#0054B9
Tritanopia (blue-blind)
#3C5E78
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #5d40bb;
/* rgb */ color: rgb(93, 64, 187);
/* oklch */ color: oklch(47.6% 0.183 288.2);
Tailwind
colors: {
  custom: {
    50: '#9377d0',
    500: '#5d40bb',
    950: '#000000',
  },
}
SCSS
$custom: #5d40bb;
$custom-light: #9377d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40bb",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 187
  },
  "hsl": {
    "h": 254.146,
    "s": 49.004,
    "l": 49.216
  },
  "oklch": {
    "l": 0.47619,
    "c": 0.18338,
    "h": 288.2
  },
  "luminance": 0.09582
}

Semantic roles & 50–950 ramp

primary
#5D40BB
secondary
#BBC88F
accent
#D94FB8
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5D40BB

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

Preview Lab → · Contrast checker → · Palette generator →

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