#5F378B#5F378B

#5F378B is a dark, vivid violet. Relative luminance 0.070; OKLCH L 42.8% C 0.136 H 303.0°. Best body text is #FFFFFF at 8.73:1 contrast (WCAG AA passes).

Color values

HEX#5F378B
RGBrgb(95, 55, 139)
HSLhsl(269, 43%, 38%)
HSVhsv(269, 60%, 55%)
CMYKcmyk(31.7%, 60.4%, 0%, 45.5%)
CIE-LABlab(31.87, 35.41, -40.27)
CIE-LCHlch(31.87, 53.63, 311.32°)
OKLaboklab(42.78% 0.0741 -0.1139)
OKLCHoklch(42.78% 0.136 303)
XYZxyz(10.7446, 7.0294, 25.2118)
Luminance0.0703 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F378B #638B37
analogous
#37398B #5F378B #89378B
triadic
#5F378B #8B5F37 #378B5F
tetradic
#5F378B #8B3739 #638B37 #378B89
square
#5F378B #8B3739 #638B37 #378B89
split-complementary
#5F378B #8B8937 #398B37
monochromatic
#231433 #41265F #5F378B #7D48B7 #9C74C8

Accessibility & contrast

On white

8.73
#5F378B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#5F378B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F378B
8.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F378B#FFFFFF#000000##FFFFFF
##5F378B1.008.732.418.73
#FFFFFF8.731.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F4A8E
Deuteranopia (green-blind)
#224B89
Tritanopia (blue-blind)
#57485B
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f378b;
/* rgb */ color: rgb(95, 55, 139);
/* oklch */ color: oklch(42.8% 0.136 303.0);
Tailwind
colors: {
  custom: {
    50: '#8f70ad',
    500: '#5f378b',
    950: '#000000',
  },
}
SCSS
$custom: #5f378b;
$custom-light: #8f70ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f378b",
  "rgb": {
    "r": 95,
    "g": 55,
    "b": 139
  },
  "hsl": {
    "h": 268.571,
    "s": 43.299,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42778,
    "c": 0.13591,
    "h": 303
  },
  "luminance": 0.07029
}

Semantic roles & 50–950 ramp

primary
#5F378B
secondary
#91B16D
accent
#D35597
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F378B

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

Preview Lab → · Contrast checker → · Palette generator →

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