#4F176D#4F176D

#4F176D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.142 H 310.6°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#4F176D
RGBrgb(79, 23, 109)
HSLhsl(279, 65%, 26%)
HSVhsv(279, 79%, 43%)
CMYKcmyk(27.5%, 78.9%, 0%, 57.3%)
CIE-LABlab(21.50, 40.60, -38.14)
CIE-LCHlch(21.50, 55.70, 316.79°)
OKLaboklab(34.15% 0.0926 -0.1081)
OKLCHoklch(34.15% 0.142 310.6)
XYZxyz(6.2906, 3.3793, 14.7859)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F176D #356D17
analogous
#24176D #4F176D #6D1760
triadic
#4F176D #6D4F17 #176D4F
tetradic
#4F176D #6D2417 #356D17 #17606D
square
#4F176D #6D2417 #356D17 #17606D
split-complementary
#4F176D #606D17 #176D24
monochromatic
#120519 #2A0C3A #4F176D #7422A0 #982CD2

Accessibility & contrast

On white

12.53
#4F176D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#4F176D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F176D
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F176D#FFFFFF#000000##FFFFFF
##4F176D1.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#04346B
Tritanopia (blue-blind)
#4B2B41
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f176d;
/* rgb */ color: rgb(79, 23, 109);
/* oklch */ color: oklch(34.1% 0.142 310.6);
Tailwind
colors: {
  custom: {
    50: '#845b97',
    500: '#4f176d',
    950: '#000000',
  },
}
SCSS
$custom: #4f176d;
$custom-light: #845b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4f176d",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 109
  },
  "hsl": {
    "h": 279.07,
    "s": 65.152,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34149,
    "c": 0.14232,
    "h": 310.6
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#4F176D
secondary
#60A33D
accent
#E8407A
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F176D

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

Preview Lab → · Contrast checker → · Palette generator →

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