#5F4591#5F4591

#5F4591 is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.6% C 0.121 H 297.1°. Best body text is #FFFFFF at 7.65:1 contrast (WCAG AA passes).

Color values

HEX#5F4591
RGBrgb(95, 69, 145)
HSLhsl(261, 36%, 42%)
HSVhsv(261, 52%, 57%)
CMYKcmyk(34.5%, 52.4%, 0%, 43.1%)
CIE-LABlab(35.47, 28.70, -38.20)
CIE-LCHlch(35.47, 47.78, 306.91°)
OKLaboklab(45.55% 0.0553 -0.1079)
OKLCHoklch(45.55% 0.121 297.1)
XYZxyz(11.9570, 8.7333, 27.8383)
Luminance0.0873 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4591 #779145
analogous
#455191 #5F4591 #854591
triadic
#5F4591 #915F45 #45915F
tetradic
#5F4591 #914551 #779145 #459185
square
#5F4591 #914551 #779145 #459185
split-complementary
#5F4591 #918545 #519145
monochromatic
#291E3E #443168 #5F4591 #7C60B3 #9E89C7

Accessibility & contrast

On white

7.65
#5F4591 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#5F4591 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4591
7.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4591#FFFFFF#000000##FFFFFF
##5F45911.007.652.757.65
#FFFFFF7.651.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295494
Deuteranopia (green-blind)
#2F538F
Tritanopia (blue-blind)
#545464
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f4591;
/* rgb */ color: rgb(95, 69, 145);
/* oklch */ color: oklch(45.6% 0.121 297.1);
Tailwind
colors: {
  custom: {
    50: '#8f79b2',
    500: '#5f4591',
    950: '#000000',
  },
}
SCSS
$custom: #5f4591;
$custom-light: #8f79b2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4591",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 145
  },
  "hsl": {
    "h": 260.526,
    "s": 35.514,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4555,
    "c": 0.12121,
    "h": 297.1
  },
  "luminance": 0.08733
}

Semantic roles & 50–950 ramp

primary
#5F4591
secondary
#A1B280
accent
#CC5CA5
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0911
muted
#7E7B80

Preview Lab

Preview with #5F4591

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

Preview Lab → · Contrast checker → · Palette generator →

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