#5F348C#5F348C

#5F348C is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.4% C 0.142 H 303.4°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5F348C
RGBrgb(95, 52, 140)
HSLhsl(269, 46%, 38%)
HSVhsv(269, 63%, 55%)
CMYKcmyk(32.1%, 62.9%, 0%, 45.1%)
CIE-LABlab(31.31, 37.37, -41.80)
CIE-LCHlch(31.31, 56.07, 311.80°)
OKLaboklab(42.39% 0.078 -0.1184)
OKLCHoklch(42.39% 0.142 303.4)
XYZxyz(10.6799, 6.7823, 25.5523)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F348C #618C34
analogous
#34358C #5F348C #8B348C
triadic
#5F348C #8C5F34 #348C5F
tetradic
#5F348C #8C3435 #618C34 #348C8B
square
#5F348C #8C3435 #618C34 #348C8B
split-complementary
#5F348C #8C8B34 #358C34
monochromatic
#221333 #41235F #5F348C #7D45B9 #9C70CA

Accessibility & contrast

On white

8.91
#5F348C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5F348C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F348C
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F348C#FFFFFF#000000##FFFFFF
##5F348C1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00498F
Deuteranopia (green-blind)
#1C4A8A
Tritanopia (blue-blind)
#56465B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f348c;
/* rgb */ color: rgb(95, 52, 140);
/* oklch */ color: oklch(42.4% 0.142 303.4);
Tailwind
colors: {
  custom: {
    50: '#906eae',
    500: '#5f348c',
    950: '#000000',
  },
}
SCSS
$custom: #5f348c;
$custom-light: #906eae;
$custom-dark: #000000;
JSON
{
  "hex": "#5f348c",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 140
  },
  "hsl": {
    "h": 269.318,
    "s": 45.833,
    "l": 37.647
  },
  "oklch": {
    "l": 0.42387,
    "c": 0.14179,
    "h": 303.4
  },
  "luminance": 0.06782
}

Semantic roles & 50–950 ramp

primary
#5F348C
secondary
#8FB26A
accent
#D55295
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F348C

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

Preview Lab → · Contrast checker → · Palette generator →

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