#4F175F#4F175F

#4F175F is a dark, vivid purple. Relative luminance 0.031; OKLCH L 33.1% C 0.128 H 317.7°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#4F175F
RGBrgb(79, 23, 95)
HSLhsl(287, 61%, 23%)
HSVhsv(287, 76%, 37%)
CMYKcmyk(16.8%, 75.8%, 0%, 62.7%)
CIE-LABlab(20.45, 37.42, -30.67)
CIE-LCHlch(20.45, 48.38, 320.66°)
OKLaboklab(33.06% 0.0947 -0.0861)
OKLCHoklch(33.06% 0.128 317.7)
XYZxyz(5.5961, 3.1015, 11.1281)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F175F #275F17
analogous
#2B175F #4F175F #5F174B
triadic
#4F175F #5F4F17 #175F4F
tetradic
#4F175F #5F2B17 #275F17 #174B5F
square
#4F175F #5F2B17 #275F17 #174B5F
split-complementary
#4F175F #4B5F17 #175F2B
monochromatic
#140619 #260B2E #4F175F #782390 #A12FC2

Accessibility & contrast

On white

12.96
#4F175F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4F175F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F175F
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F175F#FFFFFF#000000##FFFFFF
##4F175F1.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#19335D
Tritanopia (blue-blind)
#4E2539
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4f175f;
/* rgb */ color: rgb(79, 23, 95);
/* oklch */ color: oklch(33.1% 0.128 317.7);
Tailwind
colors: {
  custom: {
    50: '#835a8d',
    500: '#4f175f',
    950: '#000000',
  },
}
SCSS
$custom: #4f175f;
$custom-light: #835a8d;
$custom-dark: #000000;
JSON
{
  "hex": "#4f175f",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 95
  },
  "hsl": {
    "h": 286.667,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.33063,
    "c": 0.12798,
    "h": 317.7
  },
  "luminance": 0.03101
}

Semantic roles & 50–950 ramp

primary
#4F175F
secondary
#50963C
accent
#E44467
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040C
muted
#7C797D

Preview Lab

Preview with #4F175F

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

Preview Lab → · Contrast checker → · Palette generator →

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