#4F1878#4F1878

#4F1878 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.2% C 0.153 H 305.8°. Best body text is #FFFFFF at 12.11:1 contrast (WCAG AA passes).

Color values

HEX#4F1878
RGBrgb(79, 24, 120)
HSLhsl(274, 67%, 28%)
HSVhsv(274, 80%, 47%)
CMYKcmyk(34.2%, 80%, 0%, 52.9%)
CIE-LABlab(22.55, 42.80, -43.51)
CIE-LCHlch(22.55, 61.04, 314.53°)
OKLaboklab(35.17% 0.0892 -0.1239)
OKLCHoklch(35.17% 0.153 305.8)
XYZxyz(6.9405, 3.6717, 18.1087)
Luminance0.0367 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1878 #417818
analogous
#1F1878 #4F1878 #781871
triadic
#4F1878 #784F18 #18784F
tetradic
#4F1878 #781F18 #417818 #187178
square
#4F1878 #781F18 #417818 #187178
split-complementary
#4F1878 #717818 #18781F
monochromatic
#11051A #2D0E45 #4F1878 #7122AB #9134D6

Accessibility & contrast

On white

12.11
#4F1878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1878
12.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1878#FFFFFF#000000##FFFFFF
##4F18781.0012.111.7312.11
#FFFFFF12.111.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1878;
/* rgb */ color: rgb(79, 24, 120);
/* oklch */ color: oklch(35.2% 0.153 305.8);
Tailwind
colors: {
  custom: {
    50: '#855ca0',
    500: '#4f1878',
    950: '#000000',
  },
}
SCSS
$custom: #4f1878;
$custom-light: #855ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1878",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 274.375,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.35173,
    "c": 0.15263,
    "h": 305.8
  },
  "luminance": 0.03672
}

Semantic roles & 50–950 ramp

primary
#4F1878
secondary
#6EAD3F
accent
#EA3E87
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4F1878

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

Preview Lab → · Contrast checker → · Palette generator →

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