#5F348A#5F348A

#5F348A is a dark, vivid violet. Relative luminance 0.067; OKLCH L 42.2% C 0.139 H 304.1°. Best body text is #FFFFFF at 8.96:1 contrast (WCAG AA passes).

Color values

HEX#5F348A
RGBrgb(95, 52, 138)
HSLhsl(270, 45%, 37%)
HSVhsv(270, 62%, 54%)
CMYKcmyk(31.2%, 62.3%, 0%, 45.9%)
CIE-LABlab(31.17, 36.85, -40.78)
CIE-LCHlch(31.17, 54.97, 312.10°)
OKLaboklab(42.24% 0.0781 -0.1154)
OKLCHoklch(42.24% 0.139 304.1)
XYZxyz(10.5337, 6.7239, 24.7827)
Luminance0.0672 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F348A #5F8A34
analogous
#34348A #5F348A #8A348A
triadic
#5F348A #8A5F34 #348A5F
tetradic
#5F348A #8A3434 #5F8A34 #348A8A
square
#5F348A #8A3434 #5F8A34 #348A8A
split-complementary
#5F348A #8A8A34 #348A34
monochromatic
#221331 #40235E #5F348A #7E45B6 #9C6FC9

Accessibility & contrast

On white

8.96
#5F348A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#5F348A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F348A
8.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F348A#FFFFFF#000000##FFFFFF
##5F348A1.008.962.348.96
#FFFFFF8.961.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#05488D
Deuteranopia (green-blind)
#1F4988
Tritanopia (blue-blind)
#57465A
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #5f348a;
/* rgb */ color: rgb(95, 52, 138);
/* oklch */ color: oklch(42.2% 0.139 304.1);
Tailwind
colors: {
  custom: {
    50: '#906ead',
    500: '#5f348a',
    950: '#000000',
  },
}
SCSS
$custom: #5f348a;
$custom-light: #906ead;
$custom-dark: #000000;
JSON
{
  "hex": "#5f348a",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 138
  },
  "hsl": {
    "h": 270,
    "s": 45.263,
    "l": 37.255
  },
  "oklch": {
    "l": 0.42244,
    "c": 0.13934,
    "h": 304.1
  },
  "luminance": 0.06724
}

Semantic roles & 50–950 ramp

primary
#5F348A
secondary
#8DB169
accent
#D55394
background
#F9F6FA
surface
#F1ECF4
border
#CBC7CE
text
#0D0710
muted
#7E7A7F

Preview Lab

Preview with #5F348A

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

Preview Lab → · Contrast checker → · Palette generator →

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