#5F419D#5F419D

#5F419D is a mid, vivid violet. Relative luminance 0.086; OKLCH L 45.7% C 0.144 H 295.1°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5F419D
RGBrgb(95, 65, 157)
HSLhsl(260, 41%, 44%)
HSVhsv(260, 59%, 62%)
CMYKcmyk(39.5%, 58.6%, 0%, 38.4%)
CIE-LABlab(35.30, 34.47, -45.75)
CIE-LCHlch(35.30, 57.29, 306.99°)
OKLaboklab(45.67% 0.061 -0.13)
OKLCHoklch(45.67% 0.144 295.1)
XYZxyz(12.6938, 8.6475, 32.8921)
Luminance0.0865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F419D #7F9D41
analogous
#41519D #5F419D #8D419D
triadic
#5F419D #9D5F41 #419D5F
tetradic
#5F419D #9D4151 #7F9D41 #419D8D
square
#5F419D #9D4151 #7F9D41 #419D8D
split-complementary
#5F419D #9D8D41 #519D41
monochromatic
#2B1D46 #452F72 #5F419D #7D5FBD #A08ACF

Accessibility & contrast

On white

7.69
#5F419D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5F419D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F419D
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F419D#FFFFFF#000000##FFFFFF
##5F419D1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D54A0
Deuteranopia (green-blind)
#1B529B
Tritanopia (blue-blind)
#505568
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f419d;
/* rgb */ color: rgb(95, 65, 157);
/* oklch */ color: oklch(45.7% 0.144 295.1);
Tailwind
colors: {
  custom: {
    50: '#9177ba',
    500: '#5f419d',
    950: '#000000',
  },
}
SCSS
$custom: #5f419d;
$custom-light: #9177ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f419d",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 157
  },
  "hsl": {
    "h": 259.565,
    "s": 41.441,
    "l": 43.529
  },
  "oklch": {
    "l": 0.45673,
    "c": 0.14364,
    "h": 295.1
  },
  "luminance": 0.08648
}

Semantic roles & 50–950 ramp

primary
#5F419D
secondary
#A7B980
accent
#D157A9
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0912
muted
#7E7B81

Preview Lab

Preview with #5F419D

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

Preview Lab → · Contrast checker → · Palette generator →

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