#4F178D#4F178D

#4F178D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.175 H 298.5°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#4F178D
RGBrgb(79, 23, 141)
HSLhsl(268, 72%, 32%)
HSVhsv(268, 84%, 55%)
CMYKcmyk(44%, 83.7%, 0%, 44.7%)
CIE-LABlab(24.32, 48.39, -53.87)
CIE-LCHlch(24.32, 72.41, 311.93°)
OKLaboklab(36.98% 0.0837 -0.1543)
OKLCHoklch(36.98% 0.175 298.5)
XYZxyz(8.3373, 4.1980, 25.5652)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F178D #558D17
analogous
#171A8D #4F178D #8A178D
triadic
#4F178D #8D4F17 #178D4F
tetradic
#4F178D #8D171A #558D17 #178D8A
square
#4F178D #8D171A #558D17 #178D8A
split-complementary
#4F178D #8D8A17 #1A8D17
monochromatic
#140624 #320E58 #4F178D #6C20C2 #8B3FE0

Accessibility & contrast

On white

11.42
#4F178D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#4F178D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F178D
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F178D#FFFFFF#000000##FFFFFF
##4F178D1.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A90
Deuteranopia (green-blind)
#00398B
Tritanopia (blue-blind)
#3F3953
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f178d;
/* rgb */ color: rgb(79, 23, 141);
/* oklch */ color: oklch(37.0% 0.175 298.5);
Tailwind
colors: {
  custom: {
    50: '#875daf',
    500: '#4f178d',
    950: '#000000',
  },
}
SCSS
$custom: #4f178d;
$custom-light: #875daf;
$custom-dark: #000000;
JSON
{
  "hex": "#4f178d",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 141
  },
  "hsl": {
    "h": 268.475,
    "s": 71.951,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36984,
    "c": 0.17549,
    "h": 298.5
  },
  "luminance": 0.04198
}

Semantic roles & 50–950 ramp

primary
#4F178D
secondary
#83C040
accent
#EF3999
background
#F8F5FA
surface
#F0E9F5
border
#CBC5CF
text
#0C0411
muted
#7D7980

Preview Lab

Preview with #4F178D

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

Preview Lab → · Contrast checker → · Palette generator →

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