#5B40DD#5B40DD

#5B40DD is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 50.4% C 0.225 H 282.6°. Best body text is #FFFFFF at 6.52:1 contrast (WCAG AA passes).

Color values

HEX#5B40DD
RGBrgb(91, 64, 221)
HSLhsl(250, 70%, 56%)
HSVhsv(250, 71%, 87%)
CMYKcmyk(58.8%, 71%, 0%, 13.3%)
CIE-LABlab(39.77, 52.98, -76.08)
CIE-LCHlch(39.77, 92.71, 304.85°)
OKLaboklab(50.38% 0.0491 -0.2192)
OKLCHoklch(50.38% 0.225 282.6)
XYZxyz(19.1949, 11.1101, 69.5256)
Luminance0.1111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5B40DD #C2DD40
analogous
#4074DD #5B40DD #A940DD
triadic
#5B40DD #DD5B40 #40DD5B
tetradic
#5B40DD #DD4074 #C2DD40 #40DDA9
square
#5B40DD #DD4074 #C2DD40 #40DDA9
split-complementary
#5B40DD #DDA940 #74DD40
monochromatic
#2C198A #3D22BE #5B40DD #8874E6 #B4A8EF

Accessibility & contrast

On white

6.52
#5B40DD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#5B40DD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5B40DD
6.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5B40DD#FFFFFF#000000##FFFFFF
##5B40DD1.006.523.226.52
#FFFFFF6.521.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063E2
Deuteranopia (green-blind)
#0058DA
Tritanopia (blue-blind)
#006B8A
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #5b40dd;
/* rgb */ color: rgb(91, 64, 221);
/* oklch */ color: oklch(50.4% 0.225 282.6);
Tailwind
colors: {
  custom: {
    50: '#9778e9',
    500: '#5b40dd',
    950: '#000000',
  },
}
SCSS
$custom: #5b40dd;
$custom-light: #9778e9;
$custom-dark: #000000;
JSON
{
  "hex": "#5b40dd",
  "rgb": {
    "r": 91,
    "g": 64,
    "b": 221
  },
  "hsl": {
    "h": 250.318,
    "s": 69.778,
    "l": 55.882
  },
  "oklch": {
    "l": 0.50382,
    "c": 0.22463,
    "h": 282.6
  },
  "luminance": 0.11111
}

Semantic roles & 50–950 ramp

primary
#5B40DD
secondary
#D2DD9C
accent
#ED3BCE
background
#FAF7FE
surface
#F3EDFD
border
#CDC8D5
text
#0F0916
muted
#7F7B84

Preview Lab

Preview with #5B40DD

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

Preview Lab → · Contrast checker → · Palette generator →

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