#4F1879#4F1879

#4F1879 is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.154 H 305.4°. Best body text is #FFFFFF at 12.07:1 contrast (WCAG AA passes).

Color values

HEX#4F1879
RGBrgb(79, 24, 121)
HSLhsl(274, 67%, 28%)
HSVhsv(274, 80%, 47%)
CMYKcmyk(34.7%, 80.2%, 0%, 52.5%)
CIE-LABlab(22.64, 43.05, -44.01)
CIE-LCHlch(22.64, 61.56, 314.36°)
OKLaboklab(35.26% 0.0889 -0.1253)
OKLCHoklch(35.26% 0.154 305.4)
XYZxyz(7.0015, 3.6961, 18.4300)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1879 #427918
analogous
#1E1879 #4F1879 #791872
triadic
#4F1879 #794F18 #18794F
tetradic
#4F1879 #791E18 #427918 #187279
square
#4F1879 #791E18 #427918 #187279
split-complementary
#4F1879 #727918 #18791E
monochromatic
#11051A #2E0E46 #4F1879 #7022AC #9135D7

Accessibility & contrast

On white

12.07
#4F1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#4F1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4F1879
12.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1879#FFFFFF#000000##FFFFFF
##4F18791.0012.071.7412.07
#FFFFFF12.071.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357C
Deuteranopia (green-blind)
#003677
Tritanopia (blue-blind)
#473148
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #4f1879;
/* rgb */ color: rgb(79, 24, 121);
/* oklch */ color: oklch(35.3% 0.154 305.4);
Tailwind
colors: {
  custom: {
    50: '#855ca0',
    500: '#4f1879',
    950: '#000000',
  },
}
SCSS
$custom: #4f1879;
$custom-light: #855ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1879",
  "rgb": {
    "r": 79,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 274.021,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35259,
    "c": 0.15367,
    "h": 305.4
  },
  "luminance": 0.03696
}

Semantic roles & 50–950 ramp

primary
#4F1879
secondary
#6FAE3F
accent
#EA3E88
background
#F8F5FA
surface
#F0E9F3
border
#CBC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4F1879

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

Preview Lab → · Contrast checker → · Palette generator →

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