#4F175B#4F175B

#4F175B is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.8% C 0.124 H 320.0°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#4F175B
RGBrgb(79, 23, 91)
HSLhsl(289, 60%, 22%)
HSVhsv(289, 75%, 36%)
CMYKcmyk(13.2%, 74.7%, 0%, 64.3%)
CIE-LABlab(20.17, 36.55, -28.46)
CIE-LCHlch(20.17, 46.32, 322.09°)
OKLaboklab(32.77% 0.095 -0.0797)
OKLCHoklch(32.77% 0.124 320)
XYZxyz(5.4189, 3.0307, 10.1950)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F175B #235B17
analogous
#2D175B #4F175B #5B1745
triadic
#4F175B #5B4F17 #175B4F
tetradic
#4F175B #5B2D17 #235B17 #17455B
square
#4F175B #5B2D17 #235B17 #17455B
split-complementary
#4F175B #455B17 #175B2D
monochromatic
#150618 #250B2A #4F175B #79238C #A430BD

Accessibility & contrast

On white

13.08
#4F175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F175B
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F175B#FFFFFF#000000##FFFFFF
##4F175B1.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5D
Deuteranopia (green-blind)
#1D3359
Tritanopia (blue-blind)
#4F2437
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4f175b;
/* rgb */ color: rgb(79, 23, 91);
/* oklch */ color: oklch(32.8% 0.124 320.0);
Tailwind
colors: {
  custom: {
    50: '#835a8a',
    500: '#4f175b',
    950: '#000000',
  },
}
SCSS
$custom: #4f175b;
$custom-light: #835a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f175b",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 289.412,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32774,
    "c": 0.12395,
    "h": 320
  },
  "luminance": 0.0303
}

Semantic roles & 50–950 ramp

primary
#4F175B
secondary
#4B923C
accent
#E34561
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4F175B

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

Preview Lab → · Contrast checker → · Palette generator →

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