#5F418C#5F418C

#5F418C is a dark, vivid violet. Relative luminance 0.081; OKLCH L 44.5% C 0.121 H 300.0°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#5F418C
RGBrgb(95, 65, 140)
HSLhsl(264, 37%, 40%)
HSVhsv(264, 54%, 55%)
CMYKcmyk(32.1%, 53.6%, 0%, 45.1%)
CIE-LABlab(34.20, 29.76, -37.16)
CIE-LCHlch(34.20, 47.61, 308.69°)
OKLaboklab(44.52% 0.0605 -0.1048)
OKLCHoklch(44.52% 0.121 300)
XYZxyz(11.3421, 8.1069, 25.7731)
Luminance0.0811 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F418C #6E8C41
analogous
#41498C #5F418C #84418C
triadic
#5F418C #8C5F41 #418C5F
tetradic
#5F418C #8C4149 #6E8C41 #418C84
square
#5F418C #8C4149 #6E8C41 #418C84
split-complementary
#5F418C #8C8441 #498C41
monochromatic
#261A38 #432E62 #5F418C #7C59B2 #9D82C5

Accessibility & contrast

On white

8.01
#5F418C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#5F418C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F418C
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F418C#FFFFFF#000000##FFFFFF
##5F418C1.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26508F
Deuteranopia (green-blind)
#2E508A
Tritanopia (blue-blind)
#564F60
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #5f418c;
/* rgb */ color: rgb(95, 65, 140);
/* oklch */ color: oklch(44.5% 0.121 300.0);
Tailwind
colors: {
  custom: {
    50: '#8f76ae',
    500: '#5f418c',
    950: '#000000',
  },
}
SCSS
$custom: #5f418c;
$custom-light: #8f76ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f418c",
  "rgb": {
    "r": 95,
    "g": 65,
    "b": 140
  },
  "hsl": {
    "h": 264,
    "s": 36.585,
    "l": 40.196
  },
  "oklch": {
    "l": 0.44515,
    "c": 0.121,
    "h": 300
  },
  "luminance": 0.08107
}

Semantic roles & 50–950 ramp

primary
#5F418C
secondary
#9AB079
accent
#CD5B9F
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0D0810
muted
#7D7B7F

Preview Lab

Preview with #5F418C

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

Preview Lab → · Contrast checker → · Palette generator →

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