#5F119F#5F119F

#5F119F is a dark, vivid violet. Relative luminance 0.053; OKLCH L 40.3% C 0.200 H 301.9°. Best body text is #FFFFFF at 10.16:1 contrast (WCAG AA passes).

Color values

HEX#5F119F
RGBrgb(95, 17, 159)
HSLhsl(273, 81%, 35%)
HSVhsv(273, 89%, 62%)
CMYKcmyk(40.3%, 89.3%, 0%, 37.6%)
CIE-LABlab(27.67, 56.71, -59.36)
CIE-LCHlch(27.67, 82.09, 313.69°)
OKLaboklab(40.3% 0.1056 -0.1698)
OKLCHoklch(40.3% 0.2 301.9)
XYZxyz(11.1762, 5.3369, 33.2355)
Luminance0.0534 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F119F #519F11
analogous
#18119F #5F119F #9F1198
triadic
#5F119F #9F5F11 #119F5F
tetradic
#5F119F #9F1811 #519F11 #11989F
square
#5F119F #9F1811 #519F11 #11989F
split-complementary
#5F119F #989F11 #119F18
monochromatic
#1D0530 #3E0B68 #5F119F #8017D6 #9E40EB

Accessibility & contrast

On white

10.16
#5F119F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#5F119F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F119F
10.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F119F#FFFFFF#000000##FFFFFF
##5F119F1.0010.162.0710.16
#FFFFFF10.161.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A3
Deuteranopia (green-blind)
#00419D
Tritanopia (blue-blind)
#513E5D
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #5f119f;
/* rgb */ color: rgb(95, 17, 159);
/* oklch */ color: oklch(40.3% 0.200 301.9);
Tailwind
colors: {
  custom: {
    50: '#945ebc',
    500: '#5f119f',
    950: '#000000',
  },
}
SCSS
$custom: #5f119f;
$custom-light: #945ebc;
$custom-dark: #000000;
JSON
{
  "hex": "#5f119f",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 159
  },
  "hsl": {
    "h": 272.958,
    "s": 80.682,
    "l": 34.51
  },
  "oklch": {
    "l": 0.40299,
    "c": 0.19989,
    "h": 301.9
  },
  "luminance": 0.05337
}

Semantic roles & 50–950 ramp

primary
#5F119F
secondary
#7FCA42
accent
#F7318A
background
#F9F5FB
surface
#F2EAF7
border
#CCC6D0
text
#0E0512
muted
#7E7981

Preview Lab

Preview with #5F119F

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

Preview Lab → · Contrast checker → · Palette generator →

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