#5F4191#5F4191

#5F4191 is a dark, vivid violet. Relative luminance 0.083; OKLCH L 44.8% C 0.128 H 298.4°. Best body text is #FFFFFF at 7.92:1 contrast (WCAG AA passes).

Color values

HEX#5F4191
RGBrgb(95, 65, 145)
HSLhsl(263, 38%, 41%)
HSVhsv(263, 55%, 57%)
CMYKcmyk(34.5%, 55.2%, 0%, 43.1%)
CIE-LABlab(34.51, 31.13, -39.72)
CIE-LCHlch(34.51, 50.47, 308.08°)
OKLaboklab(44.84% 0.0608 -0.1123)
OKLCHoklch(44.84% 0.128 298.4)
XYZxyz(11.7192, 8.2577, 27.7590)
Luminance0.0826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4191 #739141
analogous
#414B91 #5F4191 #874191
triadic
#5F4191 #915F41 #41915F
tetradic
#5F4191 #91414B #739141 #419187
square
#5F4191 #91414B #739141 #419187
split-complementary
#5F4191 #918741 #4B9141
monochromatic
#281B3C #432E67 #5F4191 #7C5AB5 #9E84C8

Accessibility & contrast

On white

7.92
#5F4191 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#5F4191 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4191
7.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4191#FFFFFF#000000##FFFFFF
##5F41911.007.922.657.92
#FFFFFF7.921.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215194
Deuteranopia (green-blind)
#2A508F
Tritanopia (blue-blind)
#545162
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f4191;
/* rgb */ color: rgb(95, 65, 145);
/* oklch */ color: oklch(44.8% 0.128 298.4);
Tailwind
colors: {
  custom: {
    50: '#8f76b2',
    500: '#5f4191',
    950: '#000000',
  },
}
SCSS
$custom: #5f4191;
$custom-light: #8f76b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4191",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 145
  },
  "hsl": {
    "h": 262.5,
    "s": 38.095,
    "l": 41.176
  },
  "oklch": {
    "l": 0.44844,
    "c": 0.12771,
    "h": 298.4
  },
  "luminance": 0.08258
}

Semantic roles & 50–950 ramp

primary
#5F4191
secondary
#9EB37B
accent
#CE5AA2
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0811
muted
#7E7B80

Preview Lab

Preview with #5F4191

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

Preview Lab → · Contrast checker → · Palette generator →

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