#5F109D#5F109D

#5F109D is a dark, vivid violet. Relative luminance 0.052; OKLCH L 40.1% C 0.199 H 302.5°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).

Color values

HEX#5F109D
RGBrgb(95, 16, 157)
HSLhsl(274, 82%, 34%)
HSVhsv(274, 90%, 62%)
CMYKcmyk(39.5%, 89.8%, 0%, 38.4%)
CIE-LABlab(27.40, 56.50, -58.59)
CIE-LCHlch(27.40, 81.40, 313.96°)
OKLaboklab(40.06% 0.1068 -0.1675)
OKLCHoklch(40.06% 0.199 302.5)
XYZxyz(10.9889, 5.2378, 32.3238)
Luminance0.0524 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F109D #4E9D10
analogous
#19109D #5F109D #9D1095
triadic
#5F109D #9D5F10 #109D5F
tetradic
#5F109D #9D1910 #4E9D10 #10959D
square
#5F109D #9D1910 #4E9D10 #10959D
split-complementary
#5F109D #959D10 #109D19
monochromatic
#1C052E #3D0A65 #5F109D #8116D5 #9E3CEB

Accessibility & contrast

On white

10.26
#5F109D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.05
#5F109D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F109D
10.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F109D#FFFFFF#000000##FFFFFF
##5F109D1.0010.262.0510.26
#FFFFFF10.261.0021.001.00
#0000002.0521.001.0021.00
##FFFFFF10.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A1
Deuteranopia (green-blind)
#00409B
Tritanopia (blue-blind)
#513C5C
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f109d;
/* rgb */ color: rgb(95, 16, 157);
/* oklch */ color: oklch(40.1% 0.199 302.5);
Tailwind
colors: {
  custom: {
    50: '#935dbb',
    500: '#5f109d',
    950: '#000000',
  },
}
SCSS
$custom: #5f109d;
$custom-light: #935dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#5f109d",
  "rgb": {
    "r": 95,
    "g": 16,
    "b": 157
  },
  "hsl": {
    "h": 273.617,
    "s": 81.503,
    "l": 33.922
  },
  "oklch": {
    "l": 0.40056,
    "c": 0.19865,
    "h": 302.5
  },
  "luminance": 0.05238
}

Semantic roles & 50–950 ramp

primary
#5F109D
secondary
#7CCA3E
accent
#F83088
background
#F9F5FB
surface
#F2EAF6
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5F109D

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

Preview Lab → · Contrast checker → · Palette generator →

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