#5D40CF#5D40CF

#5D40CF is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 49.3% C 0.208 H 285.2°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#5D40CF
RGBrgb(93, 64, 207)
HSLhsl(252, 60%, 53%)
HSVhsv(252, 69%, 81%)
CMYKcmyk(55.1%, 69.1%, 0%, 18.8%)
CIE-LABlab(38.72, 49.16, -69.73)
CIE-LCHlch(38.72, 85.31, 305.18°)
OKLaboklab(49.31% 0.0544 -0.2005)
OKLCHoklch(49.31% 0.208 285.2)
XYZxyz(17.6067, 10.4979, 60.1179)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5D40CF #B2CF40
analogous
#406ACF #5D40CF #A540CF
triadic
#5D40CF #CF5D40 #40CF5D
tetradic
#5D40CF #CF406A #B2CF40 #40CFA5
square
#5D40CF #CF406A #B2CF40 #40CFA5
split-complementary
#5D40CF #CFA540 #6ACF40
monochromatic
#301E77 #442AA8 #5D40CF #8671DB #B0A2E8

Accessibility & contrast

On white

6.77
#5D40CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#5D40CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #5D40CF
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5D40CF#FFFFFF#000000##FFFFFF
##5D40CF1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FD3
Deuteranopia (green-blind)
#0057CC
Tritanopia (blue-blind)
#296583
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #5d40cf;
/* rgb */ color: rgb(93, 64, 207);
/* oklch */ color: oklch(49.3% 0.208 285.2);
Tailwind
colors: {
  custom: {
    50: '#9677df',
    500: '#5d40cf',
    950: '#000000',
  },
}
SCSS
$custom: #5d40cf;
$custom-light: #9677df;
$custom-dark: #000000;
JSON
{
  "hex": "#5d40cf",
  "rgb": {
    "r": 93,
    "g": 64,
    "b": 207
  },
  "hsl": {
    "h": 252.168,
    "s": 59.833,
    "l": 53.137
  },
  "oklch": {
    "l": 0.49308,
    "c": 0.20779,
    "h": 285.2
  },
  "luminance": 0.10499
}

Semantic roles & 50–950 ramp

primary
#5D40CF
secondary
#C8D497
accent
#E345C3
background
#F9F7FD
surface
#F2EDFB
border
#CCC8D4
text
#0F0915
muted
#7E7B83

Preview Lab

Preview with #5D40CF

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

Preview Lab → · Contrast checker → · Palette generator →

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