#5F41BC#5F41BC

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

Color values

HEX#5F41BC
RGBrgb(95, 65, 188)
HSLhsl(255, 49%, 50%)
HSVhsv(255, 65%, 74%)
CMYKcmyk(49.5%, 65.4%, 0%, 26.3%)
CIE-LABlab(37.56, 43.38, -60.54)
CIE-LCHlch(37.56, 74.48, 305.62°)
OKLaboklab(48.04% 0.059 -0.1735)
OKLCHoklch(48.04% 0.183 288.8)
XYZxyz(15.6841, 9.8437, 48.6408)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41BC #9EBC41
analogous
#4161BC #5F41BC #9D41BC
triadic
#5F41BC #BC5F41 #41BC5F
tetradic
#5F41BC #BC4161 #9EBC41 #41BC9D
square
#5F41BC #BC4161 #9EBC41 #41BC9D
split-complementary
#5F41BC #BC9D41 #61BC41
monochromatic
#312261 #48318F #5F41BC #856ECD #AB9BDC

Accessibility & contrast

On white

7.07
#5F41BC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#5F41BC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F41BC
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41BC#FFFFFF#000000##FFFFFF
##5F41BC1.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #5f41bc;
/* rgb */ color: rgb(95, 65, 188);
/* oklch */ color: oklch(48.0% 0.183 288.8);
Tailwind
colors: {
  custom: {
    50: '#9477d1',
    500: '#5f41bc',
    950: '#000000',
  },
}
SCSS
$custom: #5f41bc;
$custom-light: #9477d1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41bc",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 188
  },
  "hsl": {
    "h": 254.634,
    "s": 48.617,
    "l": 49.608
  },
  "oklch": {
    "l": 0.48037,
    "c": 0.18328,
    "h": 288.8
  },
  "luminance": 0.09844
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F41BC

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

Preview Lab → · Contrast checker → · Palette generator →

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