#5F147B#5F147B

#5F147B is a dark, vivid purple. Relative luminance 0.044; OKLCH L 37.4% C 0.164 H 314.3°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#5F147B
RGBrgb(95, 20, 123)
HSLhsl(284, 72%, 28%)
HSVhsv(284, 84%, 48%)
CMYKcmyk(22.8%, 83.7%, 0%, 51.8%)
CIE-LABlab(24.84, 47.95, -41.60)
CIE-LCHlch(24.84, 63.48, 319.06°)
OKLaboklab(37.37% 0.1149 -0.1176)
OKLCHoklch(37.37% 0.164 314.3)
XYZxyz(8.5440, 4.3636, 19.1272)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#5F147B #307B14
analogous
#2B147B #5F147B #7B1463
triadic
#5F147B #7B5F14 #147B5F
tetradic
#5F147B #7B2B14 #307B14 #14637B
square
#5F147B #7B2B14 #307B14 #14637B
split-complementary
#5F147B #637B14 #147B2B
monochromatic
#14041A #360B46 #5F147B #881DB0 #AD2DDD

Accessibility & contrast

On white

11.21
#5F147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#5F147B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #5F147B
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##5F147B#FFFFFF#000000##FFFFFF
##5F147B1.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#0A3D79
Tritanopia (blue-blind)
#5C2D48
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #5f147b;
/* rgb */ color: rgb(95, 20, 123);
/* oklch */ color: oklch(37.4% 0.164 314.3);
Tailwind
colors: {
  custom: {
    50: '#905da2',
    500: '#5f147b',
    950: '#000000',
  },
}
SCSS
$custom: #5f147b;
$custom-light: #905da2;
$custom-dark: #000000;
JSON
{
  "hex": "#5f147b",
  "rgb": {
    "r": 95,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 283.689,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.37372,
    "c": 0.16445,
    "h": 314.3
  },
  "luminance": 0.04363
}

Semantic roles & 50–950 ramp

primary
#5F147B
secondary
#5AB13A
accent
#EF396A
background
#F9F5FA
surface
#F1E9F3
border
#CBC5CD
text
#0D050F
muted
#7E797F

Preview Lab

Preview with #5F147B

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

Preview Lab → · Contrast checker → · Palette generator →

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