#4F174F#4F174F

#4F174F is a dark, moderate purple. Relative luminance 0.028; OKLCH L 32.0% C 0.112 H 327.8°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#4F174F
RGBrgb(79, 23, 79)
HSLhsl(300, 55%, 20%)
HSVhsv(300, 71%, 31%)
CMYKcmyk(0%, 70.9%, 0%, 69%)
CIE-LABlab(19.39, 34.07, -21.63)
CIE-LCHlch(19.39, 40.36, 327.59°)
OKLaboklab(31.97% 0.095 -0.0598)
OKLCHoklch(31.97% 0.112 327.8)
XYZxyz(4.9421, 2.8399, 7.6835)
Luminance0.0284 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F174F #174F17
analogous
#33174F #4F174F #4F1733
triadic
#4F174F #4F4F17 #174F4F
tetradic
#4F174F #4F3317 #174F17 #17334F
square
#4F174F #4F3317 #174F17 #17334F
split-complementary
#4F174F #334F17 #174F33
monochromatic
#180718 #200920 #4F174F #7E257E #AE33AE

Accessibility & contrast

On white

13.39
#4F174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4F174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F174F
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F174F#FFFFFF#000000##FFFFFF
##4F174F1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2A51
Deuteranopia (green-blind)
#25324E
Tritanopia (blue-blind)
#521F30
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4f174f;
/* rgb */ color: rgb(79, 23, 79);
/* oklch */ color: oklch(32.0% 0.112 327.8);
Tailwind
colors: {
  custom: {
    50: '#835980',
    500: '#4f174f',
    950: '#000000',
  },
}
SCSS
$custom: #4f174f;
$custom-light: #835980;
$custom-dark: #000000;
JSON
{
  "hex": "#4f174f",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 300,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.31966,
    "c": 0.1122,
    "h": 327.8
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#4F174F
secondary
#3C863C
accent
#DE4A4A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4F174F

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

Preview Lab → · Contrast checker → · Palette generator →

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