#4F176C#4F176C

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

Color values

HEX#4F176C
RGBrgb(79, 23, 108)
HSLhsl(280, 65%, 26%)
HSVhsv(280, 79%, 42%)
CMYKcmyk(26.9%, 78.7%, 0%, 57.6%)
CIE-LABlab(21.42, 40.37, -37.62)
CIE-LCHlch(21.42, 55.18, 317.02°)
OKLaboklab(34.07% 0.0928 -0.1065)
OKLCHoklch(34.07% 0.141 311.1)
XYZxyz(6.2371, 3.3579, 14.5040)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F176C #346C17
analogous
#24176C #4F176C #6C175E
triadic
#4F176C #6C4F17 #176C4F
tetradic
#4F176C #6C2417 #346C17 #175E6C
square
#4F176C #6C2417 #346C17 #175E6C
split-complementary
#4F176C #5E6C17 #176C24
monochromatic
#120519 #2A0C3A #4F176C #74229E #992CD1

Accessibility & contrast

On white

12.56
#4F176C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F176C
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F176C#FFFFFF#000000##FFFFFF
##4F176C1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#06346A
Tritanopia (blue-blind)
#4B2B40
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #4f176c;
/* rgb */ color: rgb(79, 23, 108);
/* oklch */ color: oklch(34.1% 0.141 311.1);
Tailwind
colors: {
  custom: {
    50: '#845b97',
    500: '#4f176c',
    950: '#000000',
  },
}
SCSS
$custom: #4f176c;
$custom-light: #845b97;
$custom-dark: #000000;
JSON
{
  "hex": "#4f176c",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 108
  },
  "hsl": {
    "h": 279.529,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.34068,
    "c": 0.14129,
    "h": 311.1
  },
  "luminance": 0.03358
}

Semantic roles & 50–950 ramp

primary
#4F176C
secondary
#5FA23D
accent
#E84079
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4F176C

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

Preview Lab → · Contrast checker → · Palette generator →

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