#5F41BB#5F41BB

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

Color values

HEX#5F41BB
RGBrgb(95, 65, 187)
HSLhsl(255, 48%, 49%)
HSVhsv(255, 65%, 73%)
CMYKcmyk(49.2%, 65.2%, 0%, 26.7%)
CIE-LABlab(37.48, 43.09, -60.08)
CIE-LCHlch(37.48, 73.94, 305.65°)
OKLaboklab(47.96% 0.0591 -0.1722)
OKLCHoklch(47.96% 0.182 289)
XYZxyz(15.5767, 9.8007, 48.0751)
Luminance0.0980 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41BB #9DBB41
analogous
#4160BB #5F41BB #9C41BB
triadic
#5F41BB #BB5F41 #41BB5F
tetradic
#5F41BB #BB4160 #9DBB41 #41BB9C
square
#5F41BB #BB4160 #9DBB41 #41BB9C
split-complementary
#5F41BB #BB9C41 #60BB41
monochromatic
#312160 #48318E #5F41BB #846DCC #AB9ADC

Accessibility & contrast

On white

7.09
#5F41BB on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#5F41BB on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F41BB
7.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41BB#FFFFFF#000000##FFFFFF
##5F41BB1.007.092.967.09
#FFFFFF7.091.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBF
Deuteranopia (green-blind)
#0055B9
Tritanopia (blue-blind)
#405F78
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #5f41bb;
/* rgb */ color: rgb(95, 65, 187);
/* oklch */ color: oklch(48.0% 0.182 289.0);
Tailwind
colors: {
  custom: {
    50: '#9477d0',
    500: '#5f41bb',
    950: '#000000',
  },
}
SCSS
$custom: #5f41bb;
$custom-light: #9477d0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41bb",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 187
  },
  "hsl": {
    "h": 254.754,
    "s": 48.413,
    "l": 49.412
  },
  "oklch": {
    "l": 0.47956,
    "c": 0.18203,
    "h": 289
  },
  "luminance": 0.09801
}

Semantic roles & 50–950 ramp

primary
#5F41BB
secondary
#BAC890
accent
#D850B7
background
#F9F7FC
surface
#F2EDF9
border
#CCC8D2
text
#0E0914
muted
#7E7B82

Preview Lab

Preview with #5F41BB

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

Preview Lab → · Contrast checker → · Palette generator →

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