#5F1165#5F1165

#5F1165 is a dark, vivid purple. Relative luminance 0.038; OKLCH L 35.5% C 0.148 H 324.8°. Best body text is #FFFFFF at 11.97:1 contrast (WCAG AA passes).

Color values

HEX#5F1165
RGBrgb(95, 17, 101)
HSLhsl(296, 71%, 23%)
HSVhsv(296, 83%, 40%)
CMYKcmyk(5.9%, 83.2%, 0%, 60.4%)
CIE-LABlab(22.91, 44.52, -30.52)
CIE-LCHlch(22.91, 53.97, 325.57°)
OKLaboklab(35.5% 0.1209 -0.0851)
OKLCHoklch(35.5% 0.148 324.8)
XYZxyz(7.2685, 3.7739, 12.6550)
Luminance0.0377 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1165 #176511
analogous
#351165 #5F1165 #651141
triadic
#5F1165 #655F11 #11655F
tetradic
#5F1165 #653511 #176511 #114165
square
#5F1165 #653511 #176511 #114165
split-complementary
#5F1165 #416511 #116535
monochromatic
#19041A #2E0831 #5F1165 #901A99 #C223CE

Accessibility & contrast

On white

11.97
#5F1165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#5F1165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1165
11.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1165#FFFFFF#000000##FFFFFF
##5F11651.0011.971.7511.97
#FFFFFF11.971.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003167
Deuteranopia (green-blind)
#233A63
Tritanopia (blue-blind)
#61213B
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #5f1165;
/* rgb */ color: rgb(95, 17, 101);
/* oklch */ color: oklch(35.5% 0.148 324.8);
Tailwind
colors: {
  custom: {
    50: '#905a91',
    500: '#5f1165',
    950: '#000000',
  },
}
SCSS
$custom: #5f1165;
$custom-light: #905a91;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1165",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 295.714,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.35504,
    "c": 0.14781,
    "h": 324.8
  },
  "luminance": 0.03773
}

Semantic roles & 50–950 ramp

primary
#5F1165
secondary
#3C9D35
accent
#EE3A47
background
#F9F5F8
surface
#F1E9F0
border
#CBC5CB
text
#0D040D
muted
#7E797D

Preview Lab

Preview with #5F1165

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

Preview Lab → · Contrast checker → · Palette generator →

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