#4F178C#4F178C

#4F178C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.174 H 298.8°. Best body text is #FFFFFF at 11.45:1 contrast (WCAG AA passes).

Color values

HEX#4F178C
RGBrgb(79, 23, 140)
HSLhsl(269, 72%, 32%)
HSVhsv(269, 84%, 55%)
CMYKcmyk(43.6%, 83.6%, 0%, 45.1%)
CIE-LABlab(24.22, 48.14, -53.41)
CIE-LCHlch(24.22, 71.90, 312.03°)
OKLaboklab(36.89% 0.084 -0.1529)
OKLCHoklch(36.89% 0.174 298.8)
XYZxyz(8.2633, 4.1684, 25.1751)
Luminance0.0417 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F178C #548C17
analogous
#171A8C #4F178C #8A178C
triadic
#4F178C #8C4F17 #178C4F
tetradic
#4F178C #8C171A #548C17 #178C8A
square
#4F178C #8C171A #548C17 #178C8A
split-complementary
#4F178C #8C8A17 #1A8C17
monochromatic
#140623 #310E57 #4F178C #6D20C1 #8B3EDF

Accessibility & contrast

On white

11.45
#4F178C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#4F178C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F178C
11.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F178C#FFFFFF#000000##FFFFFF
##4F178C1.0011.451.8311.45
#FFFFFF11.451.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8F
Deuteranopia (green-blind)
#00388A
Tritanopia (blue-blind)
#403953
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f178c;
/* rgb */ color: rgb(79, 23, 140);
/* oklch */ color: oklch(36.9% 0.174 298.8);
Tailwind
colors: {
  custom: {
    50: '#875caf',
    500: '#4f178c',
    950: '#000000',
  },
}
SCSS
$custom: #4f178c;
$custom-light: #875caf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f178c",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 140
  },
  "hsl": {
    "h": 268.718,
    "s": 71.779,
    "l": 31.961
  },
  "oklch": {
    "l": 0.36889,
    "c": 0.17445,
    "h": 298.8
  },
  "luminance": 0.04169
}

Semantic roles & 50–950 ramp

primary
#4F178C
secondary
#82BF3F
accent
#EF3998
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F178C

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

Preview Lab → · Contrast checker → · Palette generator →

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