#5F1174#5F1174

#5F1174 is a dark, vivid purple. Relative luminance 0.041; OKLCH L 36.6% C 0.161 H 317.6°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#5F1174
RGBrgb(95, 17, 116)
HSLhsl(287, 74%, 26%)
HSVhsv(287, 85%, 45%)
CMYKcmyk(18.1%, 85.3%, 0%, 54.5%)
CIE-LABlab(23.98, 47.43, -38.51)
CIE-LCHlch(23.98, 61.10, 320.92°)
OKLaboklab(36.6% 0.1187 -0.1085)
OKLCHoklch(36.6% 0.161 317.6)
XYZxyz(8.0717, 4.0951, 16.8849)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F1174 #267411
analogous
#2D1174 #5F1174 #741157
triadic
#5F1174 #745F11 #11745F
tetradic
#5F1174 #742D11 #267411 #115774
square
#5F1174 #742D11 #267411 #115774
split-complementary
#5F1174 #577411 #11742D
monochromatic
#16041B #33093F #5F1174 #8B19A9 #B621DE

Accessibility & contrast

On white

11.54
#5F1174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#5F1174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F1174
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F1174#FFFFFF#000000##FFFFFF
##5F11741.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003477
Deuteranopia (green-blind)
#143B72
Tritanopia (blue-blind)
#5E2944
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #5f1174;
/* rgb */ color: rgb(95, 17, 116);
/* oklch */ color: oklch(36.6% 0.161 317.6);
Tailwind
colors: {
  custom: {
    50: '#905b9d',
    500: '#5f1174',
    950: '#000000',
  },
}
SCSS
$custom: #5f1174;
$custom-light: #905b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#5f1174",
  "rgb": {
    "r": 95,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 287.273,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.36603,
    "c": 0.16085,
    "h": 317.6
  },
  "luminance": 0.04095
}

Semantic roles & 50–950 ramp

primary
#5F1174
secondary
#4FAB36
accent
#F1375E
background
#F9F5F9
surface
#F1E9F2
border
#CBC5CC
text
#0D040E
muted
#7E797E

Preview Lab

Preview with #5F1174

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

Preview Lab → · Contrast checker → · Palette generator →

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