#5F428C#5F428C

#5F428C is a dark, moderate violet. Relative luminance 0.082; OKLCH L 44.7% C 0.119 H 299.7°. Best body text is #FFFFFF at 7.94:1 contrast (WCAG AA passes).

Color values

HEX#5F428C
RGBrgb(95, 66, 140)
HSLhsl(264, 36%, 40%)
HSVhsv(264, 53%, 55%)
CMYKcmyk(32.1%, 52.9%, 0%, 45.1%)
CIE-LABlab(34.44, 29.16, -36.78)
CIE-LCHlch(34.44, 46.93, 308.41°)
OKLaboklab(44.69% 0.0591 -0.1037)
OKLCHoklch(44.69% 0.119 299.7)
XYZxyz(11.4000, 8.2227, 25.7924)
Luminance0.0822 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F428C #6F8C42
analogous
#424A8C #5F428C #84428C
triadic
#5F428C #8C5F42 #428C5F
tetradic
#5F428C #8C424A #6F8C42 #428C84
square
#5F428C #8C424A #6F8C42 #428C84
split-complementary
#5F428C #8C8442 #4A8C42
monochromatic
#271B39 #432E62 #5F428C #7C5AB1 #9D84C5

Accessibility & contrast

On white

7.94
#5F428C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F428C
7.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F428C#FFFFFF#000000##FFFFFF
##5F428C1.007.942.647.94
#FFFFFF7.941.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28518F
Deuteranopia (green-blind)
#30508A
Tritanopia (blue-blind)
#565060
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f428c;
/* rgb */ color: rgb(95, 66, 140);
/* oklch */ color: oklch(44.7% 0.119 299.7);
Tailwind
colors: {
  custom: {
    50: '#8f77ae',
    500: '#5f428c',
    950: '#000000',
  },
}
SCSS
$custom: #5f428c;
$custom-light: #8f77ae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f428c",
  "rgb": {
    "r": 95,
    "g": 66,
    "b": 140
  },
  "hsl": {
    "h": 263.514,
    "s": 35.922,
    "l": 40.392
  },
  "oklch": {
    "l": 0.44692,
    "c": 0.11934,
    "h": 299.7
  },
  "luminance": 0.08223
}

Semantic roles & 50–950 ramp

primary
#5F428C
secondary
#9BB07A
accent
#CC5CA0
background
#F8F7FA
surface
#F0EDF4
border
#CBC8CE
text
#0D0910
muted
#7D7B7F

Preview Lab

Preview with #5F428C

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

Preview Lab → · Contrast checker → · Palette generator →

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