#5F418F#5F418F

#5F418F is a dark, vivid violet. Relative luminance 0.082; OKLCH L 44.7% C 0.125 H 299.0°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#5F418F
RGBrgb(95, 65, 143)
HSLhsl(263, 38%, 41%)
HSVhsv(263, 55%, 56%)
CMYKcmyk(33.6%, 54.5%, 0%, 43.9%)
CIE-LABlab(34.39, 30.58, -38.70)
CIE-LCHlch(34.39, 49.32, 308.31°)
OKLaboklab(44.71% 0.0607 -0.1093)
OKLCHoklch(44.71% 0.125 299)
XYZxyz(11.5663, 8.1966, 26.9540)
Luminance0.0820 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F418F #718F41
analogous
#414A8F #5F418F #86418F
triadic
#5F418F #8F5F41 #418F5F
tetradic
#5F418F #8F414A #718F41 #418F86
square
#5F418F #8F414A #718F41 #418F86
split-complementary
#5F418F #8F8641 #4A8F41
monochromatic
#271B3B #432E65 #5F418F #7C59B4 #9D84C7

Accessibility & contrast

On white

7.96
#5F418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#5F418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F418F
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F418F#FFFFFF#000000##FFFFFF
##5F418F1.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235192
Deuteranopia (green-blind)
#2C508D
Tritanopia (blue-blind)
#555061
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f418f;
/* rgb */ color: rgb(95, 65, 143);
/* oklch */ color: oklch(44.7% 0.125 299.0);
Tailwind
colors: {
  custom: {
    50: '#8f76b0',
    500: '#5f418f',
    950: '#000000',
  },
}
SCSS
$custom: #5f418f;
$custom-light: #8f76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f418f",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 263.077,
    "s": 37.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44712,
    "c": 0.12504,
    "h": 299
  },
  "luminance": 0.08197
}

Semantic roles & 50–950 ramp

primary
#5F418F
secondary
#9CB17A
accent
#CD5AA1
background
#F9F7FA
surface
#F1EDF5
border
#CBC8CF
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #5F418F

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

Preview Lab → · Contrast checker → · Palette generator →

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