#5F41AC#5F41AC

#5F41AC is a mid, vivid violet. Relative luminance 0.092; OKLCH L 46.8% C 0.163 H 291.8°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#5F41AC
RGBrgb(95, 65, 172)
HSLhsl(257, 45%, 46%)
HSVhsv(257, 62%, 67%)
CMYKcmyk(44.8%, 62.2%, 0%, 32.5%)
CIE-LABlab(36.35, 38.75, -53.05)
CIE-LCHlch(36.35, 65.69, 306.15°)
OKLaboklab(46.78% 0.0605 -0.1515)
OKLCHoklch(46.78% 0.163 291.8)
XYZxyz(14.0539, 9.1916, 40.0554)
Luminance0.0919 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F41AC #8EAC41
analogous
#4159AC #5F41AC #9541AC
triadic
#5F41AC #AC5F41 #41AC5F
tetradic
#5F41AC #AC4159 #8EAC41 #41AC95
square
#5F41AC #AC4159 #8EAC41 #41AC95
split-complementary
#5F41AC #AC9541 #59AC41
monochromatic
#2E1F53 #463080 #5F41AC #8065C5 #A592D6

Accessibility & contrast

On white

7.40
#5F41AC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#5F41AC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F41AC
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F41AC#FFFFFF#000000##FFFFFF
##5F41AC1.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0057AF
Deuteranopia (green-blind)
#0053AA
Tritanopia (blue-blind)
#495A70
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #5f41ac;
/* rgb */ color: rgb(95, 65, 172);
/* oklch */ color: oklch(46.8% 0.163 291.8);
Tailwind
colors: {
  custom: {
    50: '#9277c5',
    500: '#5f41ac',
    950: '#000000',
  },
}
SCSS
$custom: #5f41ac;
$custom-light: #9277c5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f41ac",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 172
  },
  "hsl": {
    "h": 256.822,
    "s": 45.148,
    "l": 46.471
  },
  "oklch": {
    "l": 0.46779,
    "c": 0.1631,
    "h": 291.8
  },
  "luminance": 0.09192
}

Semantic roles & 50–950 ramp

primary
#5F41AC
secondary
#B1C188
accent
#D553B0
background
#F9F7FC
surface
#F2EDF8
border
#CCC8D1
text
#0D0913
muted
#7E7B82

Preview Lab

Preview with #5F41AC

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

Preview Lab → · Contrast checker → · Palette generator →

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