#5C418F#5C418F

#5C418F is a dark, vivid violet. Relative luminance 0.080; OKLCH L 44.4% C 0.125 H 297.0°. Best body text is #FFFFFF at 8.05:1 contrast (WCAG AA passes).

Color values

HEX#5C418F
RGBrgb(92, 65, 143)
HSLhsl(261, 38%, 41%)
HSVhsv(261, 55%, 56%)
CMYKcmyk(35.7%, 54.5%, 0%, 43.9%)
CIE-LABlab(34.06, 29.78, -39.24)
CIE-LCHlch(34.06, 49.26, 307.19°)
OKLaboklab(44.4% 0.0566 -0.111)
OKLCHoklch(44.4% 0.125 297)
XYZxyz(11.2606, 8.0389, 26.9397)
Luminance0.0804 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5C418F #748F41
analogous
#414D8F #5C418F #83418F
triadic
#5C418F #8F5C41 #418F5C
tetradic
#5C418F #8F414D #748F41 #418F83
square
#5C418F #8F414D #748F41 #418F83
split-complementary
#5C418F #8F8341 #4D8F41
monochromatic
#261B3B #412E65 #5C418F #7959B4 #9B84C7

Accessibility & contrast

On white

8.05
#5C418F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.61
#5C418F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5C418F
8.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5C418F#FFFFFF#000000##FFFFFF
##5C418F1.008.052.618.05
#FFFFFF8.051.0021.001.00
#0000002.6121.001.0021.00
##FFFFFF8.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225092
Deuteranopia (green-blind)
#294F8D
Tritanopia (blue-blind)
#505161
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5c418f;
/* rgb */ color: rgb(92, 65, 143);
/* oklch */ color: oklch(44.4% 0.125 297.0);
Tailwind
colors: {
  custom: {
    50: '#8d76b0',
    500: '#5c418f',
    950: '#000000',
  },
}
SCSS
$custom: #5c418f;
$custom-light: #8d76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5c418f",
  "rgb": {
    "r": 92,
    "g": 65,
    "b": 143
  },
  "hsl": {
    "h": 260.769,
    "s": 37.5,
    "l": 40.784
  },
  "oklch": {
    "l": 0.44395,
    "c": 0.12459,
    "h": 297
  },
  "luminance": 0.08039
}

Semantic roles & 50–950 ramp

primary
#5C418F
secondary
#9EB17A
accent
#CD5AA6
background
#F8F7FA
surface
#F0EDF5
border
#CBC8CF
text
#0C0810
muted
#7D7B7F

Preview Lab

Preview with #5C418F

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

Preview Lab → · Contrast checker → · Palette generator →

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