#5F147C#5F147C

#5F147C is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.5% C 0.165 H 313.9°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#5F147C
RGBrgb(95, 20, 124)
HSLhsl(283, 72%, 28%)
HSVhsv(283, 84%, 49%)
CMYKcmyk(23.4%, 83.9%, 0%, 51.4%)
CIE-LABlab(24.92, 48.16, -42.11)
CIE-LCHlch(24.92, 63.97, 318.84°)
OKLaboklab(37.45% 0.1147 -0.1191)
OKLCHoklch(37.45% 0.165 313.9)
XYZxyz(8.6069, 4.3887, 19.4586)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F147C #317C14
analogous
#2B147C #5F147C #7C1465
triadic
#5F147C #7C5F14 #147C5F
tetradic
#5F147C #7C2B14 #317C14 #14657C
square
#5F147C #7C2B14 #317C14 #14657C
split-complementary
#5F147C #657C14 #147C2B
monochromatic
#14041A #370B47 #5F147C #871DB1 #AC2DDD

Accessibility & contrast

On white

11.18
#5F147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#5F147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F147C
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F147C#FFFFFF#000000##FFFFFF
##5F147C1.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377F
Deuteranopia (green-blind)
#073D7A
Tritanopia (blue-blind)
#5C2E49
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f147c;
/* rgb */ color: rgb(95, 20, 124);
/* oklch */ color: oklch(37.5% 0.165 313.9);
Tailwind
colors: {
  custom: {
    50: '#905da3',
    500: '#5f147c',
    950: '#000000',
  },
}
SCSS
$custom: #5f147c;
$custom-light: #905da3;
$custom-dark: #000000;
JSON
{
  "hex": "#5f147c",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 283.269,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.37452,
    "c": 0.16537,
    "h": 313.9
  },
  "luminance": 0.04388
}

Semantic roles & 50–950 ramp

primary
#5F147C
secondary
#5CB23A
accent
#EF396C
background
#F9F5FA
surface
#F1E9F4
border
#CBC5CE
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F147C

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

Preview Lab → · Contrast checker → · Palette generator →

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