#4F147C#4F147C

#4F147C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.1% C 0.161 H 304.7°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#4F147C
RGBrgb(79, 20, 124)
HSLhsl(274, 72%, 28%)
HSVhsv(274, 84%, 49%)
CMYKcmyk(36.3%, 83.9%, 0%, 51.4%)
CIE-LABlab(22.37, 45.33, -46.37)
CIE-LCHlch(22.37, 64.84, 314.35°)
OKLaboklab(35.15% 0.0915 -0.1322)
OKLCHoklch(35.15% 0.161 304.7)
XYZxyz(7.1119, 3.6178, 19.3885)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F147C #417C14
analogous
#1B147C #4F147C #7C1475
triadic
#4F147C #7C4F14 #147C4F
tetradic
#4F147C #7C1B14 #417C14 #14757C
square
#4F147C #7C1B14 #417C14 #14757C
split-complementary
#4F147C #757C14 #147C1B
monochromatic
#11041A #2D0B47 #4F147C #711DB1 #912DDD

Accessibility & contrast

On white

12.18
#4F147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#4F147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F147C
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F147C#FFFFFF#000000##FFFFFF
##4F147C1.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#00357A
Tritanopia (blue-blind)
#463049
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f147c;
/* rgb */ color: rgb(79, 20, 124);
/* oklch */ color: oklch(35.1% 0.161 304.7);
Tailwind
colors: {
  custom: {
    50: '#865aa3',
    500: '#4f147c',
    950: '#000000',
  },
}
SCSS
$custom: #4f147c;
$custom-light: #865aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#4f147c",
  "rgb": {
    "r": 79,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 274.038,
    "s": 72.222,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35149,
    "c": 0.16079,
    "h": 304.7
  },
  "luminance": 0.03618
}

Semantic roles & 50–950 ramp

primary
#4F147C
secondary
#6EB23A
accent
#EF3988
background
#F8F5FA
surface
#F0E9F4
border
#CBC5CE
text
#0C040F
muted
#7D797F

Preview Lab

Preview with #4F147C

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

Preview Lab → · Contrast checker → · Palette generator →

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