#4F1678#4F1678

#4F1678 is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.155 H 306.0°. Best body text is #FFFFFF at 12.22:1 contrast (WCAG AA passes).

Color values

HEX#4F1678
RGBrgb(79, 22, 120)
HSLhsl(275, 69%, 28%)
HSVhsv(275, 82%, 47%)
CMYKcmyk(34.2%, 81.7%, 0%, 52.9%)
CIE-LABlab(22.27, 43.61, -43.97)
CIE-LCHlch(22.27, 61.93, 314.77°)
OKLaboklab(34.98% 0.091 -0.1252)
OKLCHoklch(34.98% 0.155 306)
XYZxyz(6.9008, 3.5922, 18.0955)
Luminance0.0359 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1678 #3F7816
analogous
#1E1678 #4F1678 #781670
triadic
#4F1678 #784F16 #16784F
tetradic
#4F1678 #781E16 #3F7816 #167078
square
#4F1678 #781E16 #3F7816 #167078
split-complementary
#4F1678 #707816 #16781E
monochromatic
#11051A #2D0D44 #4F1678 #711FAC #922FD9

Accessibility & contrast

On white

12.22
#4F1678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1678
12.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1678#FFFFFF#000000##FFFFFF
##4F16781.0012.221.7212.22
#FFFFFF12.221.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1678;
/* rgb */ color: rgb(79, 22, 120);
/* oklch */ color: oklch(35.0% 0.155 306.0);
Tailwind
colors: {
  custom: {
    50: '#855ba0',
    500: '#4f1678',
    950: '#000000',
  },
}
SCSS
$custom: #4f1678;
$custom-light: #855ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1678",
  "rgb": {
    "r": 79,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 274.898,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.34977,
    "c": 0.15476,
    "h": 306
  },
  "luminance": 0.03592
}

Semantic roles & 50–950 ramp

primary
#4F1678
secondary
#6CAD3C
accent
#EC3C86
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4F1678

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

Preview Lab → · Contrast checker → · Palette generator →

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