#5F41BF#5F41BF

#5F41BF is a mid, vivid violet. Relative luminance 0.100; OKLCH L 48.3% C 0.187 H 288.3°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#5F41BF
RGBrgb(95, 65, 191)
HSLhsl(254, 50%, 50%)
HSVhsv(254, 66%, 75%)
CMYKcmyk(50.3%, 66%, 0%, 25.1%)
CIE-LABlab(37.80, 44.26, -61.92)
CIE-LCHlch(37.80, 76.11, 305.56°)
OKLaboklab(48.28% 0.0586 -0.1776)
OKLCHoklch(48.28% 0.187 288.3)
XYZxyz(16.0108, 9.9744, 50.3617)
Luminance0.0998 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41BF #A1BF41
analogous
#4162BF #5F41BF #9E41BF
triadic
#5F41BF #BF5F41 #41BF5F
tetradic
#5F41BF #BF4162 #A1BF41 #41BF9E
square
#5F41BF #BF4162 #A1BF41 #41BF9E
split-complementary
#5F41BF #BF9E41 #62BF41
monochromatic
#312264 #483192 #5F41BF #866FCE #AC9DDE

Accessibility & contrast

On white

7.01
#5F41BF on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F41BF
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41BF#FFFFFF#000000##FFFFFF
##5F41BF1.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CC3
Deuteranopia (green-blind)
#0056BC
Tritanopia (blue-blind)
#3D607A
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #5f41bf;
/* rgb */ color: rgb(95, 65, 191);
/* oklch */ color: oklch(48.3% 0.187 288.3);
Tailwind
colors: {
  custom: {
    50: '#9577d3',
    500: '#5f41bf',
    950: '#000000',
  },
}
SCSS
$custom: #5f41bf;
$custom-light: #9577d3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41bf",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 191
  },
  "hsl": {
    "h": 254.286,
    "s": 49.606,
    "l": 50.196
  },
  "oklch": {
    "l": 0.48281,
    "c": 0.18699,
    "h": 288.3
  },
  "luminance": 0.09975
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F41BF

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

Preview Lab → · Contrast checker → · Palette generator →

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