#5F3196#5F3196

#5F3196 is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.7% C 0.158 H 300.8°. Best body text is #FFFFFF at 8.87:1 contrast (WCAG AA passes).

Color values

HEX#5F3196
RGBrgb(95, 49, 150)
HSLhsl(267, 51%, 39%)
HSVhsv(267, 67%, 59%)
CMYKcmyk(36.7%, 67.3%, 0%, 41.2%)
CIE-LABlab(31.42, 41.61, -47.76)
CIE-LCHlch(31.42, 63.35, 311.07°)
OKLaboklab(42.7% 0.0809 -0.1359)
OKLCHoklch(42.7% 0.158 300.8)
XYZxyz(11.3213, 6.8315, 29.5704)
Luminance0.0683 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3196 #689631
analogous
#313596 #5F3196 #923196
triadic
#5F3196 #965F31 #31965F
tetradic
#5F3196 #963135 #689631 #319692
square
#5F3196 #963135 #689631 #319692
split-complementary
#5F3196 #969231 #359631
monochromatic
#25133A #422268 #5F3196 #7C43C1 #9C71D1

Accessibility & contrast

On white

8.87
#5F3196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#5F3196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3196
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3196#FFFFFF#000000##FFFFFF
##5F31961.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004999
Deuteranopia (green-blind)
#004994
Tritanopia (blue-blind)
#53485F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f3196;
/* rgb */ color: rgb(95, 49, 150);
/* oklch */ color: oklch(42.7% 0.158 300.8);
Tailwind
colors: {
  custom: {
    50: '#916cb6',
    500: '#5f3196',
    950: '#000000',
  },
}
SCSS
$custom: #5f3196;
$custom-light: #916cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3196",
  "rgb": {
    "r": 95,
    "g": 49,
    "b": 150
  },
  "hsl": {
    "h": 267.327,
    "s": 50.754,
    "l": 39.02
  },
  "oklch": {
    "l": 0.42696,
    "c": 0.15815,
    "h": 300.8
  },
  "luminance": 0.06832
}

Semantic roles & 50–950 ramp

primary
#5F3196
secondary
#95B86A
accent
#DA4E9A
background
#F9F6FB
surface
#F1EBF6
border
#CBC6D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F3196

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

Preview Lab → · Contrast checker → · Palette generator →

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