#5F429A#5F429A

#5F429A is a mid, vivid violet. Relative luminance 0.087; OKLCH L 45.6% C 0.138 H 295.6°. Best body text is #FFFFFF at 7.69:1 contrast (WCAG AA passes).

Color values

HEX#5F429A
RGBrgb(95, 66, 154)
HSLhsl(260, 40%, 43%)
HSVhsv(260, 57%, 60%)
CMYKcmyk(38.3%, 57.1%, 0%, 39.6%)
CIE-LABlab(35.33, 33.03, -43.89)
CIE-LCHlch(35.33, 54.93, 306.96°)
OKLaboklab(45.63% 0.0597 -0.1246)
OKLCHoklch(45.63% 0.138 295.6)
XYZxyz(12.4988, 8.6622, 31.5790)
Luminance0.0866 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F429A #7D9A42
analogous
#42519A #5F429A #8B429A
triadic
#5F429A #9A5F42 #429A5F
tetradic
#5F429A #9A4251 #7D9A42 #429A8B
square
#5F429A #9A4251 #7D9A42 #429A8B
split-complementary
#5F429A #9A8B42 #519A42
monochromatic
#2A1D44 #45306F #5F429A #7D5FBA #A08ACD

Accessibility & contrast

On white

7.69
#5F429A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#5F429A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F429A
7.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F429A#FFFFFF#000000##FFFFFF
##5F429A1.007.692.737.69
#FFFFFF7.691.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17549D
Deuteranopia (green-blind)
#215298
Tritanopia (blue-blind)
#515467
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #5f429a;
/* rgb */ color: rgb(95, 66, 154);
/* oklch */ color: oklch(45.6% 0.138 295.6);
Tailwind
colors: {
  custom: {
    50: '#9077b8',
    500: '#5f429a',
    950: '#000000',
  },
}
SCSS
$custom: #5f429a;
$custom-light: #9077b8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f429a",
  "rgb": {
    "r": 95,
    "g": 66,
    "b": 154
  },
  "hsl": {
    "h": 259.773,
    "s": 40,
    "l": 43.137
  },
  "oklch": {
    "l": 0.4563,
    "c": 0.13815,
    "h": 295.6
  },
  "luminance": 0.08662
}

Semantic roles & 50–950 ramp

primary
#5F429A
secondary
#A5B880
accent
#D058A8
background
#F9F7FB
surface
#F1EDF6
border
#CBC8D0
text
#0D0911
muted
#7E7B80

Preview Lab

Preview with #5F429A

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

Preview Lab → · Contrast checker → · Palette generator →

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