#5F4599#5F4599

#5F4599 is a mid, vivid violet. Relative luminance 0.090; OKLCH L 46.1% C 0.132 H 295.0°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#5F4599
RGBrgb(95, 69, 153)
HSLhsl(259, 38%, 44%)
HSVhsv(259, 55%, 60%)
CMYKcmyk(37.9%, 54.9%, 0%, 40%)
CIE-LABlab(35.96, 30.94, -42.27)
CIE-LCHlch(35.96, 52.38, 306.20°)
OKLaboklab(46.08% 0.0558 -0.1198)
OKLCHoklch(46.08% 0.132 295)
XYZxyz(12.5957, 8.9888, 31.2022)
Luminance0.0899 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F4599 #7F9945
analogous
#455599 #5F4599 #894599
triadic
#5F4599 #995F45 #45995F
tetradic
#5F4599 #994555 #7F9945 #459989
square
#5F4599 #994555 #7F9945 #459989
split-complementary
#5F4599 #998945 #559945
monochromatic
#2B1F45 #45326F #5F4599 #7D63B9 #A08DCC

Accessibility & contrast

On white

7.51
#5F4599 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#5F4599 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F4599
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F4599#FFFFFF#000000##FFFFFF
##5F45991.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20559C
Deuteranopia (green-blind)
#275397
Tritanopia (blue-blind)
#515668
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f4599;
/* rgb */ color: rgb(95, 69, 153);
/* oklch */ color: oklch(46.1% 0.132 295.0);
Tailwind
colors: {
  custom: {
    50: '#9079b7',
    500: '#5f4599',
    950: '#000000',
  },
}
SCSS
$custom: #5f4599;
$custom-light: #9079b7;
$custom-dark: #000000;
JSON
{
  "hex": "#5f4599",
  "rgb": {
    "r": 95,
    "g": 69,
    "b": 153
  },
  "hsl": {
    "h": 258.571,
    "s": 37.838,
    "l": 43.529
  },
  "oklch": {
    "l": 0.4608,
    "c": 0.13213,
    "h": 295
  },
  "luminance": 0.08989
}

Semantic roles & 50–950 ramp

primary
#5F4599
secondary
#A7B783
accent
#CE5AAA
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0911
muted
#7E7B80

Preview Lab

Preview with #5F4599

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

Preview Lab → · Contrast checker → · Palette generator →

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