#5F339A#5F339A

#5F339A is a dark, vivid violet. Relative luminance 0.071; OKLCH L 43.3% C 0.160 H 299.2°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#5F339A
RGBrgb(95, 51, 154)
HSLhsl(266, 50%, 40%)
HSVhsv(266, 67%, 60%)
CMYKcmyk(38.3%, 66.9%, 0%, 39.6%)
CIE-LABlab(32.11, 41.60, -49.08)
CIE-LCHlch(32.11, 64.34, 310.28°)
OKLaboklab(43.29% 0.0781 -0.1398)
OKLCHoklch(43.29% 0.16 299.2)
XYZxyz(11.7344, 7.1335, 31.3243)
Luminance0.0713 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F339A #6E9A33
analogous
#333A9A #5F339A #92339A
triadic
#5F339A #9A5F33 #339A5F
tetradic
#5F339A #9A333A #6E9A33 #339A92
square
#5F339A #9A333A #6E9A33 #339A92
split-complementary
#5F339A #9A9233 #3A9A33
monochromatic
#26153E #43246C #5F339A #7C48C2 #9D76D2

Accessibility & contrast

On white

8.65
#5F339A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#5F339A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F339A
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F339A#FFFFFF#000000##FFFFFF
##5F339A1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9D
Deuteranopia (green-blind)
#004B98
Tritanopia (blue-blind)
#524B62
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f339a;
/* rgb */ color: rgb(95, 51, 154);
/* oklch */ color: oklch(43.3% 0.160 299.2);
Tailwind
colors: {
  custom: {
    50: '#916eb8',
    500: '#5f339a',
    950: '#000000',
  },
}
SCSS
$custom: #5f339a;
$custom-light: #916eb8;
$custom-dark: #000000;
JSON
{
  "hex": "#5f339a",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 265.631,
    "s": 50.244,
    "l": 40.196
  },
  "oklch": {
    "l": 0.43286,
    "c": 0.16015,
    "h": 299.2
  },
  "luminance": 0.07134
}

Semantic roles & 50–950 ramp

primary
#5F339A
secondary
#9ABA6F
accent
#DA4E9E
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F339A

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

Preview Lab → · Contrast checker → · Palette generator →

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