#4F175C#4F175C

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

Color values

HEX#4F175C
RGBrgb(79, 23, 92)
HSLhsl(289, 60%, 23%)
HSVhsv(289, 75%, 36%)
CMYKcmyk(14.1%, 75%, 0%, 63.9%)
CIE-LABlab(20.24, 36.77, -29.02)
CIE-LCHlch(20.24, 46.84, 321.72°)
OKLaboklab(32.85% 0.0949 -0.0813)
OKLCHoklch(32.85% 0.125 319.4)
XYZxyz(5.4624, 3.0480, 10.4237)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F175C #245C17
analogous
#2D175C #4F175C #5C1746
triadic
#4F175C #5C4F17 #175C4F
tetradic
#4F175C #5C2D17 #245C17 #17465C
square
#4F175C #5C2D17 #245C17 #17465C
split-complementary
#4F175C #465C17 #175C2D
monochromatic
#150618 #250B2B #4F175C #79238D #A32FBE

Accessibility & contrast

On white

13.05
#4F175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F175C
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F175C#FFFFFF#000000##FFFFFF
##4F175C1.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f175c;
/* rgb */ color: rgb(79, 23, 92);
/* oklch */ color: oklch(32.8% 0.125 319.4);
Tailwind
colors: {
  custom: {
    50: '#835a8a',
    500: '#4f175c',
    950: '#000000',
  },
}
SCSS
$custom: #4f175c;
$custom-light: #835a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4f175c",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 288.696,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32845,
    "c": 0.12496,
    "h": 319.4
  },
  "luminance": 0.03048
}

Semantic roles & 50–950 ramp

primary
#4F175C
secondary
#4C933C
accent
#E34563
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4F175C

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

Preview Lab → · Contrast checker → · Palette generator →

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