#5F3C8A#5F3C8A

#5F3C8A is a dark, vivid violet. Relative luminance 0.075; OKLCH L 43.5% C 0.127 H 302.1°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#5F3C8A
RGBrgb(95, 60, 138)
HSLhsl(267, 39%, 39%)
HSVhsv(267, 57%, 54%)
CMYKcmyk(31.2%, 56.5%, 0%, 45.9%)
CIE-LABlab(32.92, 32.23, -37.98)
CIE-LCHlch(32.92, 49.81, 310.31°)
OKLaboklab(43.52% 0.0673 -0.1072)
OKLCHoklch(43.52% 0.127 302.1)
XYZxyz(10.9216, 7.4996, 24.9120)
Luminance0.0750 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3C8A #678A3C
analogous
#3C408A #5F3C8A #863C8A
triadic
#5F3C8A #8A5F3C #3C8A5F
tetradic
#5F3C8A #8A3C40 #678A3C #3C8A86
square
#5F3C8A #8A3C40 #678A3C #3C8A86
split-complementary
#5F3C8A #8A863C #408A3C
monochromatic
#241735 #42295F #5F3C8A #7D50B3 #9C7BC6

Accessibility & contrast

On white

8.40
#5F3C8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#5F3C8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3C8A
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3C8A#FFFFFF#000000##FFFFFF
##5F3C8A1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4D8D
Deuteranopia (green-blind)
#2A4D88
Tritanopia (blue-blind)
#574B5D
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #5f3c8a;
/* rgb */ color: rgb(95, 60, 138);
/* oklch */ color: oklch(43.5% 0.127 302.1);
Tailwind
colors: {
  custom: {
    50: '#8f73ad',
    500: '#5f3c8a',
    950: '#000000',
  },
}
SCSS
$custom: #5f3c8a;
$custom-light: #8f73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3c8a",
  "rgb": {
    "r": 95,
    "g": 60,
    "b": 138
  },
  "hsl": {
    "h": 266.923,
    "s": 39.394,
    "l": 38.824
  },
  "oklch": {
    "l": 0.43524,
    "c": 0.1266,
    "h": 302.1
  },
  "luminance": 0.075
}

Semantic roles & 50–950 ramp

primary
#5F3C8A
secondary
#94AF73
accent
#CF599A
background
#F9F7FA
surface
#F1EDF4
border
#CBC8CE
text
#0D0810
muted
#7E7B7F

Preview Lab

Preview with #5F3C8A

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

Preview Lab → · Contrast checker → · Palette generator →

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