#5F41BE#5F41BE

#5F41BE is a mid, vivid violet. Relative luminance 0.099; OKLCH L 48.2% C 0.186 H 288.4°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#5F41BE
RGBrgb(95, 65, 190)
HSLhsl(254, 49%, 50%)
HSVhsv(254, 66%, 75%)
CMYKcmyk(50%, 65.8%, 0%, 25.5%)
CIE-LABlab(37.72, 43.97, -61.46)
CIE-LCHlch(37.72, 75.57, 305.58°)
OKLaboklab(48.2% 0.0588 -0.1762)
OKLCHoklch(48.2% 0.186 288.4)
XYZxyz(15.9012, 9.9305, 49.7841)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41BE #A0BE41
analogous
#4161BE #5F41BE #9E41BE
triadic
#5F41BE #BE5F41 #41BE5F
tetradic
#5F41BE #BE4161 #A0BE41 #41BE9E
square
#5F41BE #BE4161 #A0BE41 #41BE9E
split-complementary
#5F41BE #BE9E41 #61BE41
monochromatic
#312263 #483190 #5F41BE #856FCE #AC9CDD

Accessibility & contrast

On white

7.03
#5F41BE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#5F41BE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F41BE
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41BE#FFFFFF#000000##FFFFFF
##5F41BE1.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BC2
Deuteranopia (green-blind)
#0056BB
Tritanopia (blue-blind)
#3E607A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f41be;
/* rgb */ color: rgb(95, 65, 190);
/* oklch */ color: oklch(48.2% 0.186 288.4);
Tailwind
colors: {
  custom: {
    50: '#9577d3',
    500: '#5f41be',
    950: '#000000',
  },
}
SCSS
$custom: #5f41be;
$custom-light: #9577d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41be",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 190
  },
  "hsl": {
    "h": 254.4,
    "s": 49.02,
    "l": 50
  },
  "oklch": {
    "l": 0.48199,
    "c": 0.18576,
    "h": 288.4
  },
  "luminance": 0.09931
}

Semantic roles & 50–950 ramp

primary
#5F41BE
secondary
#BCC991
accent
#D94FB8
background
#F9F7FD
surface
#F2EDFA
border
#CCC8D3
text
#0E0914
muted
#7E7B83

Preview Lab

Preview with #5F41BE

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

Preview Lab → · Contrast checker → · Palette generator →

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