#4F174C#4F174C

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

Color values

HEX#4F174C
RGBrgb(79, 23, 76)
HSLhsl(303, 55%, 20%)
HSVhsv(303, 71%, 31%)
CMYKcmyk(0%, 70.9%, 3.8%, 69%)
CIE-LABlab(19.21, 33.49, -19.87)
CIE-LCHlch(19.21, 38.94, 329.32°)
OKLaboklab(31.78% 0.0947 -0.0547)
OKLCHoklch(31.78% 0.109 330)
XYZxyz(4.8353, 2.7972, 7.1213)
Luminance0.0280 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F174C #174F1A
analogous
#36174F #4F174C #4F1730
triadic
#4F174C #4C4F17 #174C4F
tetradic
#4F174C #4F3617 #174F1A #17304F
square
#4F174C #4F3617 #174F1A #17304F
split-complementary
#4F174C #304F17 #174F36
monochromatic
#180717 #20091E #4F174C #7E257A #AE33A7

Accessibility & contrast

On white

13.47
#4F174C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F174C
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F174C#FFFFFF#000000##FFFFFF
##4F174C1.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#122A4E
Deuteranopia (green-blind)
#26314B
Tritanopia (blue-blind)
#521D2F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4f174c;
/* rgb */ color: rgb(79, 23, 76);
/* oklch */ color: oklch(31.8% 0.109 330.0);
Tailwind
colors: {
  custom: {
    50: '#83597e',
    500: '#4f174c',
    950: '#000000',
  },
}
SCSS
$custom: #4f174c;
$custom-light: #83597e;
$custom-dark: #000000;
JSON
{
  "hex": "#4f174c",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 76
  },
  "hsl": {
    "h": 303.214,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.31779,
    "c": 0.10939,
    "h": 330
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#4F174C
secondary
#3C8640
accent
#DE524A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B040A
muted
#7C797C

Preview Lab

Preview with #4F174C

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

Preview Lab → · Contrast checker → · Palette generator →

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