#5F337B#5F337B

#5F337B is a dark, vivid violet. Relative luminance 0.062; OKLCH L 41.1% C 0.123 H 310.3°. Best body text is #FFFFFF at 9.35:1 contrast (WCAG AA passes).

Color values

HEX#5F337B
RGBrgb(95, 51, 123)
HSLhsl(277, 41%, 34%)
HSVhsv(277, 59%, 48%)
CMYKcmyk(22.8%, 58.5%, 0%, 51.8%)
CIE-LABlab(29.99, 33.64, -33.33)
CIE-LCHlch(29.99, 47.35, 315.27°)
OKLaboklab(41.07% 0.0794 -0.0936)
OKLCHoklch(41.07% 0.123 310.3)
XYZxyz(9.4776, 6.2308, 19.4384)
Luminance0.0623 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F337B #4F7B33
analogous
#3B337B #5F337B #7B3373
triadic
#5F337B #7B5F33 #337B5F
tetradic
#5F337B #7B3B33 #4F7B33 #33737B
square
#5F337B #7B3B33 #4F7B33 #33737B
split-complementary
#5F337B #737B33 #337B3B
monochromatic
#1C0F24 #3E2150 #5F337B #8045A6 #9E68C0

Accessibility & contrast

On white

9.35
#5F337B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#5F337B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F337B
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F337B#FFFFFF#000000##FFFFFF
##5F337B1.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C457D
Deuteranopia (green-blind)
#2C4779
Tritanopia (blue-blind)
#5B4052
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #5f337b;
/* rgb */ color: rgb(95, 51, 123);
/* oklch */ color: oklch(41.1% 0.123 310.3);
Tailwind
colors: {
  custom: {
    50: '#8f6da1',
    500: '#5f337b',
    950: '#000000',
  },
}
SCSS
$custom: #5f337b;
$custom-light: #8f6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#5f337b",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 123
  },
  "hsl": {
    "h": 276.667,
    "s": 41.379,
    "l": 34.118
  },
  "oklch": {
    "l": 0.41068,
    "c": 0.12268,
    "h": 310.3
  },
  "luminance": 0.06231
}

Semantic roles & 50–950 ramp

primary
#5F337B
secondary
#7DA862
accent
#D15786
background
#F8F6FA
surface
#F0EBF3
border
#CBC6CD
text
#0D070F
muted
#7D7A7F

Preview Lab

Preview with #5F337B

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

Preview Lab → · Contrast checker → · Palette generator →

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