#4F178F#4F178F

#4F178F is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.2% C 0.178 H 297.9°. Best body text is #FFFFFF at 11.34:1 contrast (WCAG AA passes).

Color values

HEX#4F178F
RGBrgb(79, 23, 143)
HSLhsl(268, 72%, 33%)
HSVhsv(268, 84%, 56%)
CMYKcmyk(44.8%, 83.9%, 0%, 43.9%)
CIE-LABlab(24.51, 48.89, -54.80)
CIE-LCHlch(24.51, 73.44, 311.73°)
OKLaboklab(37.17% 0.083 -0.157)
OKLCHoklch(37.17% 0.178 297.9)
XYZxyz(8.4875, 4.2581, 26.3560)
Luminance0.0426 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F178F #578F17
analogous
#171B8F #4F178F #8B178F
triadic
#4F178F #8F4F17 #178F4F
tetradic
#4F178F #8F171B #578F17 #178F8B
square
#4F178F #8F171B #578F17 #178F8B
split-complementary
#4F178F #8F8B17 #1B8F17
monochromatic
#150626 #320F5A #4F178F #6C1FC4 #8B40E0

Accessibility & contrast

On white

11.34
#4F178F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#4F178F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F178F
11.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F178F#FFFFFF#000000##FFFFFF
##4F178F1.0011.341.8511.34
#FFFFFF11.341.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A92
Deuteranopia (green-blind)
#00398D
Tritanopia (blue-blind)
#3E3A55
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #4f178f;
/* rgb */ color: rgb(79, 23, 143);
/* oklch */ color: oklch(37.2% 0.178 297.9);
Tailwind
colors: {
  custom: {
    50: '#885db1',
    500: '#4f178f',
    950: '#000000',
  },
}
SCSS
$custom: #4f178f;
$custom-light: #885db1;
$custom-dark: #000000;
JSON
{
  "hex": "#4f178f",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 143
  },
  "hsl": {
    "h": 268,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37174,
    "c": 0.17756,
    "h": 297.9
  },
  "luminance": 0.04258
}

Semantic roles & 50–950 ramp

primary
#4F178F
secondary
#85C141
accent
#EF399A
background
#F8F5FB
surface
#F0E9F6
border
#CBC5D0
text
#0C0511
muted
#7D7980

Preview Lab

Preview with #4F178F

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

Preview Lab → · Contrast checker → · Palette generator →

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