#4F177B#4F177B

#4F177B is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.157 H 304.7°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#4F177B
RGBrgb(79, 23, 123)
HSLhsl(274, 68%, 29%)
HSVhsv(274, 81%, 48%)
CMYKcmyk(35.8%, 81.3%, 0%, 51.8%)
CIE-LABlab(22.67, 43.94, -45.24)
CIE-LCHlch(22.67, 63.06, 314.17°)
OKLaboklab(35.34% 0.0893 -0.1289)
OKLCHoklch(35.34% 0.157 304.7)
XYZxyz(7.1052, 3.7052, 19.0759)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F177B #437B17
analogous
#1D177B #4F177B #7B1775
triadic
#4F177B #7B4F17 #177B4F
tetradic
#4F177B #7B1D17 #437B17 #17757B
square
#4F177B #7B1D17 #437B17 #17757B
split-complementary
#4F177B #757B17 #177B1D
monochromatic
#11051A #2E0D47 #4F177B #7021AF #9033D9

Accessibility & contrast

On white

12.06
#4F177B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4F177B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F177B
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F177B#FFFFFF#000000##FFFFFF
##4F177B1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357E
Deuteranopia (green-blind)
#003679
Tritanopia (blue-blind)
#463149
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f177b;
/* rgb */ color: rgb(79, 23, 123);
/* oklch */ color: oklch(35.3% 0.157 304.7);
Tailwind
colors: {
  custom: {
    50: '#855ba2',
    500: '#4f177b',
    950: '#000000',
  },
}
SCSS
$custom: #4f177b;
$custom-light: #855ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#4f177b",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 123
  },
  "hsl": {
    "h": 273.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.35335,
    "c": 0.15681,
    "h": 304.7
  },
  "luminance": 0.03705
}

Semantic roles & 50–950 ramp

primary
#4F177B
secondary
#70B03E
accent
#EB3C89
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F177B

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

Preview Lab → · Contrast checker → · Palette generator →

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