#5F3399#5F3399

#5F3399 is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.2% C 0.159 H 299.5°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#5F3399
RGBrgb(95, 51, 153)
HSLhsl(266, 50%, 40%)
HSVhsv(266, 67%, 60%)
CMYKcmyk(37.9%, 66.7%, 0%, 40%)
CIE-LABlab(32.03, 41.34, -48.60)
CIE-LCHlch(32.03, 63.80, 310.39°)
OKLaboklab(43.21% 0.0782 -0.1384)
OKLCHoklch(43.21% 0.159 299.5)
XYZxyz(11.6515, 7.1003, 30.8875)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F3399 #6D9933
analogous
#333A99 #5F3399 #923399
triadic
#5F3399 #995F33 #33995F
tetradic
#5F3399 #99333A #6D9933 #339992
square
#5F3399 #99333A #6D9933 #339992
split-complementary
#5F3399 #999233 #3A9933
monochromatic
#26143D #42246B #5F3399 #7C47C2 #9D75D1

Accessibility & contrast

On white

8.68
#5F3399 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5F3399 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F3399
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F3399#FFFFFF#000000##FFFFFF
##5F33991.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9C
Deuteranopia (green-blind)
#004B97
Tritanopia (blue-blind)
#524A61
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f3399;
/* rgb */ color: rgb(95, 51, 153);
/* oklch */ color: oklch(43.2% 0.159 299.5);
Tailwind
colors: {
  custom: {
    50: '#916eb8',
    500: '#5f3399',
    950: '#000000',
  },
}
SCSS
$custom: #5f3399;
$custom-light: #916eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f3399",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 153
  },
  "hsl": {
    "h": 265.882,
    "s": 50,
    "l": 40
  },
  "oklch": {
    "l": 0.43209,
    "c": 0.15894,
    "h": 299.5
  },
  "luminance": 0.071
}

Semantic roles & 50–950 ramp

primary
#5F3399
secondary
#99B96E
accent
#DA4E9D
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F3399

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

Preview Lab → · Contrast checker → · Palette generator →

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