#5F3597#5F3597

#5F3597 is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.3% C 0.154 H 299.7°. Best body text is #FFFFFF at 8.60:1 contrast (WCAG AA passes).

Color values

HEX#5F3597
RGBrgb(95, 53, 151)
HSLhsl(266, 48%, 40%)
HSVhsv(266, 65%, 59%)
CMYKcmyk(37.1%, 64.9%, 0%, 40.8%)
CIE-LABlab(32.29, 39.71, -46.97)
CIE-LCHlch(32.29, 61.51, 310.22°)
OKLaboklab(43.35% 0.0761 -0.1336)
OKLCHoklch(43.35% 0.154 299.7)
XYZxyz(11.5770, 7.2134, 30.0545)
Luminance0.0721 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3597 #6D9735
analogous
#353C97 #5F3597 #903597
triadic
#5F3597 #975F35 #35975F
tetradic
#5F3597 #97353C #6D9735 #359790
square
#5F3597 #97353C #6D9735 #359790
split-complementary
#5F3597 #979035 #3C9735
monochromatic
#26153C #42256A #5F3597 #7C4ABF #9D77CF

Accessibility & contrast

On white

8.60
#5F3597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#5F3597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3597
8.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3597#FFFFFF#000000##FFFFFF
##5F35971.008.602.448.60
#FFFFFF8.601.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#074B95
Tritanopia (blue-blind)
#534B61
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f3597;
/* rgb */ color: rgb(95, 53, 151);
/* oklch */ color: oklch(43.3% 0.154 299.7);
Tailwind
colors: {
  custom: {
    50: '#916fb6',
    500: '#5f3597',
    950: '#000000',
  },
}
SCSS
$custom: #5f3597;
$custom-light: #916fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3597",
  "rgb": {
    "r": 95,
    "g": 53,
    "b": 151
  },
  "hsl": {
    "h": 265.714,
    "s": 48.039,
    "l": 40
  },
  "oklch": {
    "l": 0.43345,
    "c": 0.15373,
    "h": 299.7
  },
  "luminance": 0.07213
}

Semantic roles & 50–950 ramp

primary
#5F3597
secondary
#99B870
accent
#D8509E
background
#F9F6FB
surface
#F1ECF6
border
#CBC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F3597

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

Preview Lab → · Contrast checker → · Palette generator →

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