#5F347A#5F347A

#5F347A is a dark, moderate violet. Relative luminance 0.063; OKLCH L 41.2% C 0.120 H 310.6°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#5F347A
RGBrgb(95, 52, 122)
HSLhsl(277, 40%, 34%)
HSVhsv(277, 57%, 48%)
CMYKcmyk(22.1%, 57.4%, 0%, 52.2%)
CIE-LABlab(30.14, 32.82, -32.45)
CIE-LCHlch(30.14, 46.15, 315.32°)
OKLaboklab(41.16% 0.0779 -0.091)
OKLCHoklch(41.16% 0.12 310.6)
XYZxyz(9.4595, 6.2942, 19.1252)
Luminance0.0629 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F347A #4F7A34
analogous
#3C347A #5F347A #7A3472
triadic
#5F347A #7A5F34 #347A5F
tetradic
#5F347A #7A3C34 #4F7A34 #34727A
square
#5F347A #7A3C34 #4F7A34 #34727A
split-complementary
#5F347A #727A34 #347A3C
monochromatic
#1C0F24 #3E224F #5F347A #8046A5 #9E69BF

Accessibility & contrast

On white

9.30
#5F347A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#5F347A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F347A
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F347A#FFFFFF#000000##FFFFFF
##5F347A1.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F457C
Deuteranopia (green-blind)
#2E4878
Tritanopia (blue-blind)
#5C4052
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f347a;
/* rgb */ color: rgb(95, 52, 122);
/* oklch */ color: oklch(41.2% 0.120 310.6);
Tailwind
colors: {
  custom: {
    50: '#8e6da1',
    500: '#5f347a',
    950: '#000000',
  },
}
SCSS
$custom: #5f347a;
$custom-light: #8e6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f347a",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 122
  },
  "hsl": {
    "h": 276.857,
    "s": 40.23,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41162,
    "c": 0.11976,
    "h": 310.6
  },
  "luminance": 0.06294
}

Semantic roles & 50–950 ramp

primary
#5F347A
secondary
#7DA763
accent
#D05886
background
#F8F6F9
surface
#F0ECF2
border
#CBC7CC
text
#0C070F
muted
#7D7A7E

Preview Lab

Preview with #5F347A

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

Preview Lab → · Contrast checker → · Palette generator →

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