#4F176B#4F176B

#4F176B is a dark, vivid purple. Relative luminance 0.033; OKLCH L 34.0% C 0.140 H 311.5°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#4F176B
RGBrgb(79, 23, 107)
HSLhsl(280, 65%, 25%)
HSVhsv(280, 79%, 42%)
CMYKcmyk(26.2%, 78.5%, 0%, 58%)
CIE-LABlab(21.35, 40.13, -37.10)
CIE-LCHlch(21.35, 54.65, 317.25°)
OKLaboklab(33.99% 0.093 -0.105)
OKLCHoklch(33.99% 0.14 311.5)
XYZxyz(6.1842, 3.3368, 14.2254)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F176B #336B17
analogous
#25176B #4F176B #6B175D
triadic
#4F176B #6B4F17 #176B4F
tetradic
#4F176B #6B2517 #336B17 #175D6B
square
#4F176B #6B2517 #336B17 #175D6B
split-complementary
#4F176B #5D6B17 #176B25
monochromatic
#130519 #2A0C39 #4F176B #74229D #992DD0

Accessibility & contrast

On white

12.59
#4F176B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#4F176B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F176B
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F176B#FFFFFF#000000##FFFFFF
##4F176B1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316D
Deuteranopia (green-blind)
#083469
Tritanopia (blue-blind)
#4B2A40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f176b;
/* rgb */ color: rgb(79, 23, 107);
/* oklch */ color: oklch(34.0% 0.140 311.5);
Tailwind
colors: {
  custom: {
    50: '#845b96',
    500: '#4f176b',
    950: '#000000',
  },
}
SCSS
$custom: #4f176b;
$custom-light: #845b96;
$custom-dark: #000000;
JSON
{
  "hex": "#4f176b",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 107
  },
  "hsl": {
    "h": 280,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33987,
    "c": 0.14026,
    "h": 311.5
  },
  "luminance": 0.03337
}

Semantic roles & 50–950 ramp

primary
#4F176B
secondary
#5EA13D
accent
#E84078
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F176B

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

Preview Lab → · Contrast checker → · Palette generator →

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