#4F175D#4F175D

#4F175D is a dark, vivid purple. Relative luminance 0.031; OKLCH L 32.9% C 0.126 H 318.8°. Best body text is #FFFFFF at 13.02:1 contrast (WCAG AA passes).

Color values

HEX#4F175D
RGBrgb(79, 23, 93)
HSLhsl(288, 60%, 23%)
HSVhsv(288, 75%, 36%)
CMYKcmyk(15.1%, 75.3%, 0%, 63.5%)
CIE-LABlab(20.30, 36.98, -29.57)
CIE-LCHlch(20.30, 47.35, 321.36°)
OKLaboklab(32.92% 0.0948 -0.0829)
OKLCHoklch(32.92% 0.126 318.8)
XYZxyz(5.5064, 3.0656, 10.6555)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F175D #255D17
analogous
#2C175D #4F175D #5D1748
triadic
#4F175D #5D4F17 #175D4F
tetradic
#4F175D #5D2C17 #255D17 #17485D
square
#4F175D #5D2C17 #255D17 #17485D
split-complementary
#4F175D #485D17 #175D2C
monochromatic
#150619 #250B2C #4F175D #79238E #A22FBF

Accessibility & contrast

On white

13.02
#4F175D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4F175D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F175D
13.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F175D#FFFFFF#000000##FFFFFF
##4F175D1.0013.021.6113.02
#FFFFFF13.021.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5F
Deuteranopia (green-blind)
#1B335B
Tritanopia (blue-blind)
#4F2438
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4f175d;
/* rgb */ color: rgb(79, 23, 93);
/* oklch */ color: oklch(32.9% 0.126 318.8);
Tailwind
colors: {
  custom: {
    50: '#835a8b',
    500: '#4f175d',
    950: '#000000',
  },
}
SCSS
$custom: #4f175d;
$custom-light: #835a8b;
$custom-dark: #000000;
JSON
{
  "hex": "#4f175d",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 93
  },
  "hsl": {
    "h": 288,
    "s": 60.345,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32917,
    "c": 0.12596,
    "h": 318.8
  },
  "luminance": 0.03065
}

Semantic roles & 50–950 ramp

primary
#4F175D
secondary
#4E943C
accent
#E34464
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4F175D

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

Preview Lab → · Contrast checker → · Palette generator →

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