#4F1478#4F1478

#4F1478 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.157 H 306.2°. Best body text is #FFFFFF at 12.33:1 contrast (WCAG AA passes).

Color values

HEX#4F1478
RGBrgb(79, 20, 120)
HSLhsl(275, 71%, 27%)
HSVhsv(275, 83%, 47%)
CMYKcmyk(34.2%, 83.3%, 0%, 52.9%)
CIE-LABlab(22.01, 44.37, -44.40)
CIE-LCHlch(22.01, 62.77, 314.98°)
OKLaboklab(34.79% 0.0927 -0.1264)
OKLCHoklch(34.79% 0.157 306.2)
XYZxyz(6.8640, 3.5187, 18.0832)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1478 #3D7814
analogous
#1D1478 #4F1478 #78146F
triadic
#4F1478 #784F14 #14784F
tetradic
#4F1478 #781D14 #3D7814 #146F78
square
#4F1478 #781D14 #3D7814 #146F78
split-complementary
#4F1478 #6F7814 #14781D
monochromatic
#11041A #2C0B44 #4F1478 #721DAC #932BDC

Accessibility & contrast

On white

12.33
#4F1478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4F1478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1478
12.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1478#FFFFFF#000000##FFFFFF
##4F14781.0012.331.7012.33
#FFFFFF12.331.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003576
Tritanopia (blue-blind)
#482F47
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4f1478;
/* rgb */ color: rgb(79, 20, 120);
/* oklch */ color: oklch(34.8% 0.157 306.2);
Tailwind
colors: {
  custom: {
    50: '#855aa0',
    500: '#4f1478',
    950: '#000000',
  },
}
SCSS
$custom: #4f1478;
$custom-light: #855aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1478",
  "rgb": {
    "r": 79,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 275.4,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.34793,
    "c": 0.15675,
    "h": 306.2
  },
  "luminance": 0.03519
}

Semantic roles & 50–950 ramp

primary
#4F1478
secondary
#69AE3A
accent
#EE3A84
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0C040F
muted
#7D797E

Preview Lab

Preview with #4F1478

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

Preview Lab → · Contrast checker → · Palette generator →

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