#4F178A#4F178A

#4F178A is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.172 H 299.4°. Best body text is #FFFFFF at 11.53:1 contrast (WCAG AA passes).

Color values

HEX#4F178A
RGBrgb(79, 23, 138)
HSLhsl(269, 71%, 32%)
HSVhsv(269, 83%, 54%)
CMYKcmyk(42.8%, 83.3%, 0%, 45.9%)
CIE-LABlab(24.03, 47.64, -52.47)
CIE-LCHlch(24.03, 70.87, 312.24°)
OKLaboklab(36.7% 0.0847 -0.1501)
OKLCHoklch(36.7% 0.172 299.4)
XYZxyz(8.1171, 4.1099, 24.4055)
Luminance0.0411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F178A #528A17
analogous
#17198A #4F178A #89178A
triadic
#4F178A #8A4F17 #178A4F
tetradic
#4F178A #8A1719 #528A17 #178A89
square
#4F178A #8A1719 #528A17 #178A89
split-complementary
#4F178A #8A8917 #198A17
monochromatic
#130621 #310E56 #4F178A #6D20BE #8C3DDF

Accessibility & contrast

On white

11.53
#4F178A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#4F178A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F178A
11.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F178A#FFFFFF#000000##FFFFFF
##4F178A1.0011.531.8211.53
#FFFFFF11.531.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398D
Deuteranopia (green-blind)
#003888
Tritanopia (blue-blind)
#413852
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #4f178a;
/* rgb */ color: rgb(79, 23, 138);
/* oklch */ color: oklch(36.7% 0.172 299.4);
Tailwind
colors: {
  custom: {
    50: '#875cad',
    500: '#4f178a',
    950: '#000000',
  },
}
SCSS
$custom: #4f178a;
$custom-light: #875cad;
$custom-dark: #000000;
JSON
{
  "hex": "#4f178a",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 138
  },
  "hsl": {
    "h": 269.217,
    "s": 71.429,
    "l": 31.569
  },
  "oklch": {
    "l": 0.367,
    "c": 0.17238,
    "h": 299.4
  },
  "luminance": 0.0411
}

Semantic roles & 50–950 ramp

primary
#4F178A
secondary
#80BE3F
accent
#EE3A96
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C0410
muted
#7D797F

Preview Lab

Preview with #4F178A

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

Preview Lab → · Contrast checker → · Palette generator →

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