#5F338F#5F338F

#5F338F is a dark, vivid violet. Relative luminance 0.068; OKLCH L 42.5% C 0.147 H 302.6°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#5F338F
RGBrgb(95, 51, 143)
HSLhsl(269, 47%, 38%)
HSVhsv(269, 64%, 56%)
CMYKcmyk(33.6%, 64.3%, 0%, 43.9%)
CIE-LABlab(31.31, 38.70, -43.64)
CIE-LCHlch(31.31, 58.33, 311.57°)
OKLaboklab(42.46% 0.0791 -0.1238)
OKLCHoklch(42.46% 0.147 302.6)
XYZxyz(10.8599, 6.7837, 26.7185)
Luminance0.0678 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F338F #638F33
analogous
#33358F #5F338F #8D338F
triadic
#5F338F #8F5F33 #338F5F
tetradic
#5F338F #8F3335 #638F33 #338F8D
square
#5F338F #8F3335 #638F33 #338F8D
split-complementary
#5F338F #8F8D33 #358F33
monochromatic
#231335 #412362 #5F338F #7D43BC #9C70CC

Accessibility & contrast

On white

8.91
#5F338F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#5F338F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F338F
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F338F#FFFFFF#000000##FFFFFF
##5F338F1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#16498D
Tritanopia (blue-blind)
#56475C
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #5f338f;
/* rgb */ color: rgb(95, 51, 143);
/* oklch */ color: oklch(42.5% 0.147 302.6);
Tailwind
colors: {
  custom: {
    50: '#906db0',
    500: '#5f338f',
    950: '#000000',
  },
}
SCSS
$custom: #5f338f;
$custom-light: #906db0;
$custom-dark: #000000;
JSON
{
  "hex": "#5f338f",
  "rgb": {
    "r": 95,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 268.696,
    "s": 47.423,
    "l": 38.039
  },
  "oklch": {
    "l": 0.42455,
    "c": 0.14693,
    "h": 302.6
  },
  "luminance": 0.06784
}

Semantic roles & 50–950 ramp

primary
#5F338F
secondary
#91B46A
accent
#D75197
background
#F9F6FA
surface
#F1ECF5
border
#CBC7CF
text
#0D0711
muted
#7E7A80

Preview Lab

Preview with #5F338F

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

Preview Lab → · Contrast checker → · Palette generator →

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