#4F175A#4F175A

#4F175A is a dark, vivid purple. Relative luminance 0.030; OKLCH L 32.7% C 0.123 H 320.6°. Best body text is #FFFFFF at 13.10:1 contrast (WCAG AA passes).

Color values

HEX#4F175A
RGBrgb(79, 23, 90)
HSLhsl(290, 59%, 22%)
HSVhsv(290, 74%, 35%)
CMYKcmyk(12.2%, 74.4%, 0%, 64.7%)
CIE-LABlab(20.10, 36.34, -27.91)
CIE-LCHlch(20.10, 45.82, 322.48°)
OKLaboklab(32.7% 0.095 -0.078)
OKLCHoklch(32.7% 0.123 320.6)
XYZxyz(5.3761, 3.0135, 9.9694)
Luminance0.0301 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F175A #225A17
analogous
#2E175A #4F175A #5A1744
triadic
#4F175A #5A4F17 #175A4F
tetradic
#4F175A #5A2E17 #225A17 #17445A
square
#4F175A #5A2E17 #225A17 #17445A
split-complementary
#4F175A #445A17 #175A2E
monochromatic
#150618 #240B29 #4F175A #7A238B #A530BB

Accessibility & contrast

On white

13.10
#4F175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#4F175A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F175A
13.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F175A#FFFFFF#000000##FFFFFF
##4F175A1.0013.101.6013.10
#FFFFFF13.101.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D5C
Deuteranopia (green-blind)
#1E3358
Tritanopia (blue-blind)
#502336
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4f175a;
/* rgb */ color: rgb(79, 23, 90);
/* oklch */ color: oklch(32.7% 0.123 320.6);
Tailwind
colors: {
  custom: {
    50: '#835a89',
    500: '#4f175a',
    950: '#000000',
  },
}
SCSS
$custom: #4f175a;
$custom-light: #835a89;
$custom-dark: #000000;
JSON
{
  "hex": "#4f175a",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 290.149,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.32703,
    "c": 0.12294,
    "h": 320.6
  },
  "luminance": 0.03013
}

Semantic roles & 50–950 ramp

primary
#4F175A
secondary
#4A913C
accent
#E2455F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0B040B
muted
#7C797C

Preview Lab

Preview with #4F175A

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

Preview Lab → · Contrast checker → · Palette generator →

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