#5F339D#5F339D

#5F339D is a dark, vivid violet. Relative luminance 0.072; OKLCH L 43.5% C 0.164 H 298.4°. Best body text is #FFFFFF at 8.58:1 contrast (WCAG AA passes).

Color values

HEX#5F339D
RGBrgb(95, 51, 157)
HSLhsl(265, 51%, 41%)
HSVhsv(265, 68%, 62%)
CMYKcmyk(39.5%, 67.5%, 0%, 38.4%)
CIE-LABlab(32.34, 42.40, -50.54)
CIE-LCHlch(32.34, 65.97, 310.00°)
OKLaboklab(43.52% 0.0778 -0.1441)
OKLCHoklch(43.52% 0.164 298.4)
XYZxyz(11.9874, 7.2347, 32.6566)
Luminance0.0723 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F339D #719D33
analogous
#333C9D #5F339D #94339D
triadic
#5F339D #9D5F33 #339D5F
tetradic
#5F339D #9D333C #719D33 #339D94
square
#5F339D #9D333C #719D33 #339D94
split-complementary
#5F339D #9D9433 #3C9D33
monochromatic
#271541 #43246F #5F339D #7C49C4 #9D77D3

Accessibility & contrast

On white

8.58
#5F339D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#5F339D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F339D
8.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F339D#FFFFFF#000000##FFFFFF
##5F339D1.008.582.458.58
#FFFFFF8.581.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA0
Deuteranopia (green-blind)
#004B9B
Tritanopia (blue-blind)
#504C63
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f339d;
/* rgb */ color: rgb(95, 51, 157);
/* oklch */ color: oklch(43.5% 0.164 298.4);
Tailwind
colors: {
  custom: {
    50: '#916ebb',
    500: '#5f339d',
    950: '#000000',
  },
}
SCSS
$custom: #5f339d;
$custom-light: #916ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f339d",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 264.906,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.4352,
    "c": 0.16372,
    "h": 298.4
  },
  "luminance": 0.07235
}

Semantic roles & 50–950 ramp

primary
#5F339D
secondary
#9CBB70
accent
#DA4DA0
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F339D

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

Preview Lab → · Contrast checker → · Palette generator →

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