#4F177D#4F177D

#4F177D is a dark, vivid violet. Relative luminance 0.038; OKLCH L 35.5% C 0.159 H 303.9°. Best body text is #FFFFFF at 11.99:1 contrast (WCAG AA passes).

Color values

HEX#4F177D
RGBrgb(79, 23, 125)
HSLhsl(273, 69%, 29%)
HSVhsv(273, 82%, 49%)
CMYKcmyk(36.8%, 81.6%, 0%, 51%)
CIE-LABlab(22.85, 44.43, -46.22)
CIE-LCHlch(22.85, 64.11, 313.87°)
OKLaboklab(35.51% 0.0887 -0.1318)
OKLCHoklch(35.51% 0.159 303.9)
XYZxyz(7.2317, 3.7557, 19.7420)
Luminance0.0376 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F177D #457D17
analogous
#1C177D #4F177D #7D1778
triadic
#4F177D #7D4F17 #177D4F
tetradic
#4F177D #7D1C17 #457D17 #17787D
square
#4F177D #7D1C17 #457D17 #17787D
split-complementary
#4F177D #787D17 #177D1C
monochromatic
#10051A #2E0D49 #4F177D #7021B1 #8F35DA

Accessibility & contrast

On white

11.99
#4F177D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#4F177D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F177D
11.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F177D#FFFFFF#000000##FFFFFF
##4F177D1.0011.991.7511.99
#FFFFFF11.991.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF11.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00367B
Tritanopia (blue-blind)
#46324A
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #4f177d;
/* rgb */ color: rgb(79, 23, 125);
/* oklch */ color: oklch(35.5% 0.159 303.9);
Tailwind
colors: {
  custom: {
    50: '#855ca3',
    500: '#4f177d',
    950: '#000000',
  },
}
SCSS
$custom: #4f177d;
$custom-light: #855ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f177d",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 125
  },
  "hsl": {
    "h": 272.941,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.35512,
    "c": 0.15889,
    "h": 303.9
  },
  "luminance": 0.03756
}

Semantic roles & 50–950 ramp

primary
#4F177D
secondary
#72B23E
accent
#EC3C8B
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F177D

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

Preview Lab → · Contrast checker → · Palette generator →

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