#5F40BD#5F40BD

#5F40BD is a mid, vivid violet. Relative luminance 0.098; OKLCH L 48.0% C 0.186 H 288.8°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#5F40BD
RGBrgb(95, 64, 189)
HSLhsl(255, 49%, 50%)
HSVhsv(255, 66%, 74%)
CMYKcmyk(49.7%, 66.1%, 0%, 25.9%)
CIE-LABlab(37.43, 44.24, -61.34)
CIE-LCHlch(37.43, 75.63, 305.80°)
OKLaboklab(47.97% 0.0599 -0.1759)
OKLCHoklch(47.97% 0.186 288.8)
XYZxyz(15.7354, 9.7731, 49.1915)
Luminance0.0977 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F40BD #9EBD40
analogous
#4060BD #5F40BD #9E40BD
triadic
#5F40BD #BD5F40 #40BD5F
tetradic
#5F40BD #BD4060 #9EBD40 #40BD9E
square
#5F40BD #BD4060 #9EBD40 #40BD9E
split-complementary
#5F40BD #BD9E40 #60BD40
monochromatic
#312162 #48318F #5F40BD #856DCD #AB9ADD

Accessibility & contrast

On white

7.11
#5F40BD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#5F40BD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F40BD
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F40BD#FFFFFF#000000##FFFFFF
##5F40BD1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC1
Deuteranopia (green-blind)
#0055BA
Tritanopia (blue-blind)
#3E5F79
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f40bd;
/* rgb */ color: rgb(95, 64, 189);
/* oklch */ color: oklch(48.0% 0.186 288.8);
Tailwind
colors: {
  custom: {
    50: '#9477d2',
    500: '#5f40bd',
    950: '#000000',
  },
}
SCSS
$custom: #5f40bd;
$custom-light: #9477d2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f40bd",
  "rgb": {
    "r": 95,
    "g": 64,
    "b": 189
  },
  "hsl": {
    "h": 254.88,
    "s": 49.407,
    "l": 49.608
  },
  "oklch": {
    "l": 0.47969,
    "c": 0.18578,
    "h": 288.8
  },
  "luminance": 0.09774
}

Semantic roles & 50–950 ramp

primary
#5F40BD
secondary
#BBC990
accent
#D94FB7
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F40BD

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

Preview Lab → · Contrast checker → · Palette generator →

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