#4F174D#4F174D

#4F174D is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.8% C 0.110 H 329.3°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#4F174D
RGBrgb(79, 23, 77)
HSLhsl(302, 55%, 20%)
HSVhsv(302, 71%, 31%)
CMYKcmyk(0%, 70.9%, 2.5%, 69%)
CIE-LABlab(19.27, 33.68, -20.46)
CIE-LCHlch(19.27, 39.41, 328.73°)
OKLaboklab(31.84% 0.0948 -0.0564)
OKLCHoklch(31.84% 0.11 329.3)
XYZxyz(4.8704, 2.8112, 7.3058)
Luminance0.0281 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F174D #174F19
analogous
#35174F #4F174D #4F1731
triadic
#4F174D #4D4F17 #174D4F
tetradic
#4F174D #4F3517 #174F19 #17314F
square
#4F174D #4F3517 #174F19 #17314F
split-complementary
#4F174D #314F17 #174F35
monochromatic
#180717 #20091F #4F174D #7E257B #AE33A9

Accessibility & contrast

On white

13.44
#4F174D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4F174D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F174D
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F174D#FFFFFF#000000##FFFFFF
##4F174D1.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112A4F
Deuteranopia (green-blind)
#26314C
Tritanopia (blue-blind)
#521E2F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4f174d;
/* rgb */ color: rgb(79, 23, 77);
/* oklch */ color: oklch(31.8% 0.110 329.3);
Tailwind
colors: {
  custom: {
    50: '#83597f',
    500: '#4f174d',
    950: '#000000',
  },
}
SCSS
$custom: #4f174d;
$custom-light: #83597f;
$custom-dark: #000000;
JSON
{
  "hex": "#4f174d",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 77
  },
  "hsl": {
    "h": 302.143,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.31841,
    "c": 0.11032,
    "h": 329.3
  },
  "luminance": 0.02811
}

Semantic roles & 50–950 ramp

primary
#4F174D
secondary
#3C863E
accent
#DE4F4A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4F174D

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

Preview Lab → · Contrast checker → · Palette generator →

#4F174D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva