#4F176F#4F176F

#4F176F is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.144 H 309.7°. Best body text is #FFFFFF at 12.47:1 contrast (WCAG AA passes).

Color values

HEX#4F176F
RGBrgb(79, 23, 111)
HSLhsl(278, 66%, 26%)
HSVhsv(278, 79%, 44%)
CMYKcmyk(28.8%, 79.3%, 0%, 56.5%)
CIE-LABlab(21.66, 41.07, -39.17)
CIE-LCHlch(21.66, 56.76, 316.35°)
OKLaboklab(34.31% 0.0922 -0.1111)
OKLCHoklch(34.31% 0.144 309.7)
XYZxyz(6.3995, 3.4229, 15.3594)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F176F #376F17
analogous
#23176F #4F176F #6F1763
triadic
#4F176F #6F4F17 #176F4F
tetradic
#4F176F #6F2317 #376F17 #17636F
square
#4F176F #6F2317 #376F17 #17636F
split-complementary
#4F176F #636F17 #176F23
monochromatic
#120519 #2B0C3C #4F176F #7322A2 #972DD3

Accessibility & contrast

On white

12.47
#4F176F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F176F
12.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F176F#FFFFFF#000000##FFFFFF
##4F176F1.0012.471.6812.47
#FFFFFF12.471.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#00356D
Tritanopia (blue-blind)
#4A2C42
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4f176f;
/* rgb */ color: rgb(79, 23, 111);
/* oklch */ color: oklch(34.3% 0.144 309.7);
Tailwind
colors: {
  custom: {
    50: '#845b99',
    500: '#4f176f',
    950: '#000000',
  },
}
SCSS
$custom: #4f176f;
$custom-light: #845b99;
$custom-dark: #000000;
JSON
{
  "hex": "#4f176f",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 111
  },
  "hsl": {
    "h": 278.182,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.34313,
    "c": 0.14439,
    "h": 309.7
  },
  "luminance": 0.03423
}

Semantic roles & 50–950 ramp

primary
#4F176F
secondary
#63A53D
accent
#E93F7D
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4F176F

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

Preview Lab → · Contrast checker → · Palette generator →

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