#5F3495#5F3495

#5F3495 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.0% C 0.153 H 300.5°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#5F3495
RGBrgb(95, 52, 149)
HSLhsl(267, 48%, 39%)
HSVhsv(267, 65%, 58%)
CMYKcmyk(36.2%, 65.1%, 0%, 41.6%)
CIE-LABlab(31.94, 39.73, -46.31)
CIE-LCHlch(31.94, 61.02, 310.63°)
OKLaboklab(43.05% 0.0775 -0.1316)
OKLCHoklch(43.05% 0.153 300.5)
XYZxyz(11.3708, 7.0587, 29.1914)
Luminance0.0706 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3495 #6A9534
analogous
#343995 #5F3495 #903495
triadic
#5F3495 #955F34 #34955F
tetradic
#5F3495 #953439 #6A9534 #349590
square
#5F3495 #953439 #6A9534 #349590
split-complementary
#5F3495 #959034 #399534
monochromatic
#25143A #422468 #5F3495 #7C47BF #9D75CF

Accessibility & contrast

On white

8.71
#5F3495 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F3495
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3495#FFFFFF#000000##FFFFFF
##5F34951.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B98
Deuteranopia (green-blind)
#0A4A93
Tritanopia (blue-blind)
#53495F
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f3495;
/* rgb */ color: rgb(95, 52, 149);
/* oklch */ color: oklch(43.0% 0.153 300.5);
Tailwind
colors: {
  custom: {
    50: '#916eb5',
    500: '#5f3495',
    950: '#000000',
  },
}
SCSS
$custom: #5f3495;
$custom-light: #916eb5;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3495",
  "rgb": {
    "r": 95,
    "g": 52,
    "b": 149
  },
  "hsl": {
    "h": 266.598,
    "s": 48.259,
    "l": 39.412
  },
  "oklch": {
    "l": 0.43048,
    "c": 0.15273,
    "h": 300.5
  },
  "luminance": 0.07059
}

Semantic roles & 50–950 ramp

primary
#5F3495
secondary
#97B76E
accent
#D8509C
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F3495

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

Preview Lab → · Contrast checker → · Palette generator →

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