#4F174B#4F174B

#4F174B is a dark, moderate purple. Relative luminance 0.028; OKLCH L 31.7% C 0.108 H 330.8°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#4F174B
RGBrgb(79, 23, 75)
HSLhsl(304, 55%, 20%)
HSVhsv(304, 71%, 31%)
CMYKcmyk(0%, 70.9%, 5.1%, 69%)
CIE-LABlab(19.15, 33.30, -19.28)
CIE-LCHlch(19.15, 38.47, 329.93°)
OKLaboklab(31.72% 0.0947 -0.053)
OKLCHoklch(31.72% 0.108 330.8)
XYZxyz(4.8008, 2.7834, 6.9396)
Luminance0.0278 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F174B #174F1B
analogous
#37174F #4F174B #4F172F
triadic
#4F174B #4B4F17 #174B4F
tetradic
#4F174B #4F3717 #174F1B #172F4F
square
#4F174B #4F3717 #174F1B #172F4F
split-complementary
#4F174B #2F4F17 #174F37
monochromatic
#180716 #20091E #4F174B #7E2578 #AE33A5

Accessibility & contrast

On white

13.49
#4F174B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F174B
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F174B#FFFFFF#000000##FFFFFF
##4F174B1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132A4D
Deuteranopia (green-blind)
#27314A
Tritanopia (blue-blind)
#521D2E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4f174b;
/* rgb */ color: rgb(79, 23, 75);
/* oklch */ color: oklch(31.7% 0.108 330.8);
Tailwind
colors: {
  custom: {
    50: '#83597d',
    500: '#4f174b',
    950: '#000000',
  },
}
SCSS
$custom: #4f174b;
$custom-light: #83597d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f174b",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 75
  },
  "hsl": {
    "h": 304.286,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.31718,
    "c": 0.10847,
    "h": 330.8
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#4F174B
secondary
#3C8641
accent
#DE544A
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0B0409
muted
#7C797B

Preview Lab

Preview with #4F174B

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

Preview Lab → · Contrast checker → · Palette generator →

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