#5F409E#5F409E

#5F409E is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.6% C 0.146 H 295.2°. Best body text is #FFFFFF at 7.74:1 contrast (WCAG AA passes).

Color values

HEX#5F409E
RGBrgb(95, 64, 158)
HSLhsl(260, 42%, 44%)
HSVhsv(260, 59%, 62%)
CMYKcmyk(39.9%, 59.5%, 0%, 38%)
CIE-LABlab(35.14, 35.34, -46.61)
CIE-LCHlch(35.14, 58.50, 307.17°)
OKLaboklab(45.58% 0.0623 -0.1325)
OKLCHoklch(45.58% 0.146 295.2)
XYZxyz(12.7227, 8.5680, 33.3246)
Luminance0.0857 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F409E #7F9E40
analogous
#40509E #5F409E #8E409E
triadic
#5F409E #9E5F40 #409E5F
tetradic
#5F409E #9E4050 #7F9E40 #409E8E
square
#5F409E #9E4050 #7F9E40 #409E8E
split-complementary
#5F409E #9E8E40 #509E40
monochromatic
#2B1D47 #452E72 #5F409E #7D5EBE #A089CF

Accessibility & contrast

On white

7.74
#5F409E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F409E
7.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F409E#FFFFFF#000000##FFFFFF
##5F409E1.007.742.717.74
#FFFFFF7.741.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0453A1
Deuteranopia (green-blind)
#16519C
Tritanopia (blue-blind)
#4F5469
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f409e;
/* rgb */ color: rgb(95, 64, 158);
/* oklch */ color: oklch(45.6% 0.146 295.2);
Tailwind
colors: {
  custom: {
    50: '#9176bb',
    500: '#5f409e',
    950: '#000000',
  },
}
SCSS
$custom: #5f409e;
$custom-light: #9176bb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f409e",
  "rgb": {
    "r": 95,
    "g": 64,
    "b": 158
  },
  "hsl": {
    "h": 259.787,
    "s": 42.342,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45579,
    "c": 0.14645,
    "h": 295.2
  },
  "luminance": 0.08568
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #5F409E

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

Preview Lab → · Contrast checker → · Palette generator →

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