#5F319E#5F319E

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

Color values

HEX#5F319E
RGBrgb(95, 49, 158)
HSLhsl(265, 53%, 41%)
HSVhsv(265, 69%, 62%)
CMYKcmyk(39.9%, 69%, 0%, 38%)
CIE-LABlab(32.03, 43.72, -51.64)
CIE-LCHlch(32.03, 67.67, 310.25°)
OKLaboklab(43.33% 0.0798 -0.1473)
OKLCHoklch(43.33% 0.168 298.5)
XYZxyz(11.9876, 7.0980, 33.0796)
Luminance0.0710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F319E #709E31
analogous
#31399E #5F319E #95319E
triadic
#5F319E #9E5F31 #319E5F
tetradic
#5F319E #9E3139 #709E31 #319E95
square
#5F319E #9E3139 #709E31 #319E95
split-complementary
#5F319E #9E9531 #399E31
monochromatic
#271441 #43236F #5F319E #7C46C6 #9D75D4

Accessibility & contrast

On white

8.68
#5F319E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#5F319E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F319E
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F319E#FFFFFF#000000##FFFFFF
##5F319E1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004BA1
Deuteranopia (green-blind)
#004A9C
Tritanopia (blue-blind)
#504B63
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #5f319e;
/* rgb */ color: rgb(95, 49, 158);
/* oklch */ color: oklch(43.3% 0.168 298.5);
Tailwind
colors: {
  custom: {
    50: '#926dbb',
    500: '#5f319e',
    950: '#000000',
  },
}
SCSS
$custom: #5f319e;
$custom-light: #926dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f319e",
  "rgb": {
    "r": 95,
    "g": 49,
    "b": 158
  },
  "hsl": {
    "h": 265.321,
    "s": 52.657,
    "l": 40.588
  },
  "oklch": {
    "l": 0.43325,
    "c": 0.16755,
    "h": 298.5
  },
  "luminance": 0.07098
}

Semantic roles & 50–950 ramp

primary
#5F319E
secondary
#9BBC6E
accent
#DC4C9F
background
#F9F6FB
surface
#F2ECF6
border
#CCC7D0
text
#0D0712
muted
#7E7A81

Preview Lab

Preview with #5F319E

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

Preview Lab → · Contrast checker → · Palette generator →

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