#5F409B#5F409B

#5F409B is a mid, vivid violet. Relative luminance 0.085; OKLCH L 45.4% C 0.143 H 295.9°. Best body text is #FFFFFF at 7.80:1 contrast (WCAG AA passes).

Color values

HEX#5F409B
RGBrgb(95, 64, 155)
HSLhsl(260, 42%, 43%)
HSVhsv(260, 59%, 61%)
CMYKcmyk(38.7%, 58.7%, 0%, 39.2%)
CIE-LABlab(34.94, 34.50, -45.13)
CIE-LCHlch(34.94, 56.80, 307.40°)
OKLaboklab(45.36% 0.0623 -0.1282)
OKLCHoklch(45.36% 0.143 295.9)
XYZxyz(12.4676, 8.4660, 31.9812)
Luminance0.0847 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F409B #7C9B40
analogous
#404E9B #5F409B #8D409B
triadic
#5F409B #9B5F40 #409B5F
tetradic
#5F409B #9B404E #7C9B40 #409B8D
square
#5F409B #9B404E #7C9B40 #409B8D
split-complementary
#5F409B #9B8D40 #4E9B40
monochromatic
#2A1C44 #442E70 #5F409B #7D5CBC #A088CE

Accessibility & contrast

On white

7.80
#5F409B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.69
#5F409B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F409B
7.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F409B#FFFFFF#000000##FFFFFF
##5F409B1.007.802.697.80
#FFFFFF7.801.0021.001.00
#0000002.6921.001.0021.00
##FFFFFF7.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E539E
Deuteranopia (green-blind)
#1C5199
Tritanopia (blue-blind)
#505367
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #5f409b;
/* rgb */ color: rgb(95, 64, 155);
/* oklch */ color: oklch(45.4% 0.143 295.9);
Tailwind
colors: {
  custom: {
    50: '#9076b9',
    500: '#5f409b',
    950: '#000000',
  },
}
SCSS
$custom: #5f409b;
$custom-light: #9076b9;
$custom-dark: #000000;
JSON
{
  "hex": "#5f409b",
  "rgb": {
    "r": 95,
    "g": 64,
    "b": 155
  },
  "hsl": {
    "h": 260.44,
    "s": 41.553,
    "l": 42.941
  },
  "oklch": {
    "l": 0.45364,
    "c": 0.14253,
    "h": 295.9
  },
  "luminance": 0.08466
}

Semantic roles & 50–950 ramp

primary
#5F409B
secondary
#A5B87E
accent
#D156A7
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0811
muted
#7E7B80

Preview Lab

Preview with #5F409B

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

Preview Lab → · Contrast checker → · Palette generator →

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