#5F1368#5F1368

#5F1368 is a dark, vivid purple. Relative luminance 0.039; OKLCH L 35.9% C 0.148 H 323.2°. Best body text is #FFFFFF at 11.80:1 contrast (WCAG AA passes).

Color values

HEX#5F1368
RGBrgb(95, 19, 104)
HSLhsl(294, 69%, 24%)
HSVhsv(294, 82%, 41%)
CMYKcmyk(8.7%, 81.7%, 0%, 59.2%)
CIE-LABlab(23.33, 44.45, -31.80)
CIE-LCHlch(23.33, 54.65, 324.42°)
OKLaboklab(35.87% 0.1188 -0.0889)
OKLCHoklch(35.87% 0.148 323.2)
XYZxyz(7.4506, 3.8986, 13.4541)
Luminance0.0390 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1368 #1C6813
analogous
#351368 #5F1368 #681347
triadic
#5F1368 #685F13 #13685F
tetradic
#5F1368 #683513 #1C6813 #134768
square
#5F1368 #683513 #1C6813 #134768
split-complementary
#5F1368 #476813 #136835
monochromatic
#18051A #300A34 #5F1368 #8E1C9C #BE26CF

Accessibility & contrast

On white

11.80
#5F1368 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#5F1368 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1368
11.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1368#FFFFFF#000000##FFFFFF
##5F13681.0011.801.7811.80
#FFFFFF11.801.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00326A
Deuteranopia (green-blind)
#223A66
Tritanopia (blue-blind)
#61243D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #5f1368;
/* rgb */ color: rgb(95, 19, 104);
/* oklch */ color: oklch(35.9% 0.148 323.2);
Tailwind
colors: {
  custom: {
    50: '#905b93',
    500: '#5f1368',
    950: '#000000',
  },
}
SCSS
$custom: #5f1368;
$custom-light: #905b93;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1368",
  "rgb": {
    "r": 95,
    "g": 19,
    "b": 104
  },
  "hsl": {
    "h": 293.647,
    "s": 69.106,
    "l": 24.118
  },
  "oklch": {
    "l": 0.35869,
    "c": 0.14839,
    "h": 323.2
  },
  "luminance": 0.03898
}

Semantic roles & 50–950 ramp

primary
#5F1368
secondary
#429F37
accent
#EC3C4F
background
#F9F5F9
surface
#F1E9F1
border
#CBC5CB
text
#0D040D
muted
#7E797E

Preview Lab

Preview with #5F1368

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

Preview Lab → · Contrast checker → · Palette generator →

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