#5F409D#5F409D

#5F409D is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.5% C 0.145 H 295.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#5F409D
RGBrgb(95, 64, 157)
HSLhsl(260, 42%, 43%)
HSVhsv(260, 59%, 62%)
CMYKcmyk(39.5%, 59.2%, 0%, 38.4%)
CIE-LABlab(35.07, 35.06, -46.12)
CIE-LCHlch(35.07, 57.93, 307.24°)
OKLaboklab(45.51% 0.0623 -0.1311)
OKLCHoklch(45.51% 0.145 295.4)
XYZxyz(12.6369, 8.5338, 32.8731)
Luminance0.0853 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F409D #7E9D40
analogous
#404F9D #5F409D #8D409D
triadic
#5F409D #9D5F40 #409D5F
tetradic
#5F409D #9D404F #7E9D40 #409D8D
square
#5F409D #9D404F #7E9D40 #409D8D
split-complementary
#5F409D #9D8D40 #4F9D40
monochromatic
#2A1D46 #452E72 #5F409D #7D5DBD #A089CF

Accessibility & contrast

On white

7.76
#5F409D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#5F409D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F409D
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F409D#FFFFFF#000000##FFFFFF
##5F409D1.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0853A0
Deuteranopia (green-blind)
#18519B
Tritanopia (blue-blind)
#505468
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f409d;
/* rgb */ color: rgb(95, 64, 157);
/* oklch */ color: oklch(45.5% 0.145 295.4);
Tailwind
colors: {
  custom: {
    50: '#9176ba',
    500: '#5f409d',
    950: '#000000',
  },
}
SCSS
$custom: #5f409d;
$custom-light: #9176ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f409d",
  "rgb": {
    "r": 95,
    "g": 64,
    "b": 157
  },
  "hsl": {
    "h": 260,
    "s": 42.081,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45507,
    "c": 0.14515,
    "h": 295.4
  },
  "luminance": 0.08534
}

Semantic roles & 50–950 ramp

primary
#5F409D
secondary
#A6B97F
accent
#D256A9
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F409D

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

Preview Lab → · Contrast checker → · Palette generator →

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