#5F428F#5F428F

#5F428F is a dark, vivid violet. Relative luminance 0.083; OKLCH L 44.9% C 0.123 H 298.7°. Best body text is #FFFFFF at 7.89:1 contrast (WCAG AA passes).

Color values

HEX#5F428F
RGBrgb(95, 66, 143)
HSLhsl(263, 37%, 41%)
HSVhsv(263, 54%, 56%)
CMYKcmyk(33.6%, 53.8%, 0%, 43.9%)
CIE-LABlab(34.63, 29.98, -38.32)
CIE-LCHlch(34.63, 48.65, 308.03°)
OKLaboklab(44.89% 0.0593 -0.1082)
OKLCHoklch(44.89% 0.123 298.7)
XYZxyz(11.6243, 8.3124, 26.9733)
Luminance0.0831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F428F #728F42
analogous
#424B8F #5F428F #85428F
triadic
#5F428F #8F5F42 #428F5F
tetradic
#5F428F #8F424B #728F42 #428F85
square
#5F428F #8F424B #728F42 #428F85
split-complementary
#5F428F #8F8542 #4B8F42
monochromatic
#271B3B #432F65 #5F428F #7C5BB3 #9E85C7

Accessibility & contrast

On white

7.89
#5F428F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#5F428F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F428F
7.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F428F#FFFFFF#000000##FFFFFF
##5F428F1.007.892.667.89
#FFFFFF7.891.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#255192
Deuteranopia (green-blind)
#2D518D
Tritanopia (blue-blind)
#555162
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #5f428f;
/* rgb */ color: rgb(95, 66, 143);
/* oklch */ color: oklch(44.9% 0.123 298.7);
Tailwind
colors: {
  custom: {
    50: '#8f77b0',
    500: '#5f428f',
    950: '#000000',
  },
}
SCSS
$custom: #5f428f;
$custom-light: #8f77b0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f428f",
  "rgb": {
    "r": 95,
    "g": 66,
    "b": 143
  },
  "hsl": {
    "h": 262.597,
    "s": 36.842,
    "l": 40.98
  },
  "oklch": {
    "l": 0.44887,
    "c": 0.12339,
    "h": 298.7
  },
  "luminance": 0.08312
}

Semantic roles & 50–950 ramp

primary
#5F428F
secondary
#9DB17B
accent
#CD5BA2
background
#F9F7FA
surface
#F1EDF5
border
#CBC8CF
text
#0D0910
muted
#7E7B7F

Preview Lab

Preview with #5F428F

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

Preview Lab → · Contrast checker → · Palette generator →

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