#4F1778#4F1778

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

Color values

HEX#4F1778
RGBrgb(79, 23, 120)
HSLhsl(275, 68%, 28%)
HSVhsv(275, 81%, 47%)
CMYKcmyk(34.2%, 80.8%, 0%, 52.9%)
CIE-LABlab(22.41, 43.21, -43.74)
CIE-LCHlch(22.41, 61.49, 314.65°)
OKLaboklab(35.07% 0.0901 -0.1245)
OKLCHoklch(35.07% 0.154 305.9)
XYZxyz(6.9203, 3.6312, 18.1020)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1778 #407817
analogous
#1E1778 #4F1778 #781770
triadic
#4F1778 #784F17 #17784F
tetradic
#4F1778 #781E17 #407817 #177078
square
#4F1778 #781E17 #407817 #177078
split-complementary
#4F1778 #707817 #17781E
monochromatic
#11051A #2D0D45 #4F1778 #7121AB #9232D8

Accessibility & contrast

On white

12.17
#4F1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#4F1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1778
12.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1778#FFFFFF#000000##FFFFFF
##4F17781.0012.171.7312.17
#FFFFFF12.171.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347B
Deuteranopia (green-blind)
#003676
Tritanopia (blue-blind)
#483047
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f1778;
/* rgb */ color: rgb(79, 23, 120);
/* oklch */ color: oklch(35.1% 0.154 305.9);
Tailwind
colors: {
  custom: {
    50: '#855ba0',
    500: '#4f1778',
    950: '#000000',
  },
}
SCSS
$custom: #4f1778;
$custom-light: #855ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1778",
  "rgb": {
    "r": 79,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 274.639,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.35073,
    "c": 0.15371,
    "h": 305.9
  },
  "luminance": 0.03631
}

Semantic roles & 50–950 ramp

primary
#4F1778
secondary
#6DAD3E
accent
#EB3D86
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4F1778

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

Preview Lab → · Contrast checker → · Palette generator →

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