#5F419C#5F419C

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

Color values

HEX#5F419C
RGBrgb(95, 65, 156)
HSLhsl(260, 41%, 43%)
HSVhsv(260, 58%, 61%)
CMYKcmyk(39.1%, 58.3%, 0%, 38.8%)
CIE-LABlab(35.23, 34.19, -45.26)
CIE-LCHlch(35.23, 56.72, 307.07°)
OKLaboklab(45.6% 0.061 -0.1286)
OKLCHoklch(45.6% 0.142 295.4)
XYZxyz(12.6088, 8.6135, 32.4443)
Luminance0.0861 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F419C #7E9C41
analogous
#41519C #5F419C #8C419C
triadic
#5F419C #9C5F41 #419C5F
tetradic
#5F419C #9C4151 #7E9C41 #419C8C
square
#5F419C #9C4151 #7E9C41 #419C8C
split-complementary
#5F419C #9C8C41 #519C41
monochromatic
#2A1D46 #452F71 #5F419C #7D5EBC #A089CE

Accessibility & contrast

On white

7.71
#5F419C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#5F419C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F419C
7.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F419C#FFFFFF#000000##FFFFFF
##5F419C1.007.712.727.71
#FFFFFF7.711.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F549F
Deuteranopia (green-blind)
#1C529A
Tritanopia (blue-blind)
#505468
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f419c;
/* rgb */ color: rgb(95, 65, 156);
/* oklch */ color: oklch(45.6% 0.142 295.4);
Tailwind
colors: {
  custom: {
    50: '#9077ba',
    500: '#5f419c',
    950: '#000000',
  },
}
SCSS
$custom: #5f419c;
$custom-light: #9077ba;
$custom-dark: #000000;
JSON
{
  "hex": "#5f419c",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 156
  },
  "hsl": {
    "h": 259.78,
    "s": 41.176,
    "l": 43.333
  },
  "oklch": {
    "l": 0.45602,
    "c": 0.14232,
    "h": 295.4
  },
  "luminance": 0.08614
}

Semantic roles & 50–950 ramp

primary
#5F419C
secondary
#A6B980
accent
#D157A9
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0812
muted
#7E7B81

Preview Lab

Preview with #5F419C

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

Preview Lab → · Contrast checker → · Palette generator →

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