#5F339E#5F339E

#5F339E is a dark, vivid violet. Relative luminance 0.073; OKLCH L 43.6% C 0.165 H 298.1°. Best body text is #FFFFFF at 8.56:1 contrast (WCAG AA passes).

Color values

HEX#5F339E
RGBrgb(95, 51, 158)
HSLhsl(265, 51%, 41%)
HSVhsv(265, 68%, 62%)
CMYKcmyk(39.9%, 67.7%, 0%, 38%)
CIE-LABlab(32.41, 42.67, -51.02)
CIE-LCHlch(32.41, 66.51, 309.91°)
OKLaboklab(43.6% 0.0776 -0.1455)
OKLCHoklch(43.6% 0.165 298.1)
XYZxyz(12.0731, 7.2690, 33.1081)
Luminance0.0727 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F339E #729E33
analogous
#333C9E #5F339E #94339E
triadic
#5F339E #9E5F33 #339E5F
tetradic
#5F339E #9E333C #729E33 #339E94
square
#5F339E #9E333C #729E33 #339E94
split-complementary
#5F339E #9E9433 #3C9E33
monochromatic
#271541 #432470 #5F339E #7C4AC4 #9E78D3

Accessibility & contrast

On white

8.56
#5F339E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #5F339E
8.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F339E#FFFFFF#000000##FFFFFF
##5F339E1.008.562.458.56
#FFFFFF8.561.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#004B9C
Tritanopia (blue-blind)
#504C64
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #5f339e;
/* rgb */ color: rgb(95, 51, 158);
/* oklch */ color: oklch(43.6% 0.165 298.1);
Tailwind
colors: {
  custom: {
    50: '#926ebb',
    500: '#5f339e',
    950: '#000000',
  },
}
SCSS
$custom: #5f339e;
$custom-light: #926ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f339e",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 264.673,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.43599,
    "c": 0.16491,
    "h": 298.1
  },
  "luminance": 0.07269
}

Semantic roles & 50–950 ramp

primary
#5F339E
secondary
#9DBC71
accent
#DB4DA0
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F339E

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

Preview Lab → · Contrast checker → · Palette generator →

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