#4F1978#4F1978

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

Color values

HEX#4F1978
RGBrgb(79, 25, 120)
HSLhsl(274, 66%, 28%)
HSVhsv(274, 79%, 47%)
CMYKcmyk(34.2%, 79.2%, 0%, 52.9%)
CIE-LABlab(22.70, 42.38, -43.27)
CIE-LCHlch(22.70, 60.57, 314.40°)
OKLaboklab(35.28% 0.0883 -0.1232)
OKLCHoklch(35.28% 0.152 305.6)
XYZxyz(6.9615, 3.7136, 18.1157)
Luminance0.0371 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4F1978 #427819
analogous
#1F1978 #4F1978 #781971
triadic
#4F1978 #784F19 #19784F
tetradic
#4F1978 #781F19 #427819 #197178
square
#4F1978 #781F19 #427819 #197178
split-complementary
#4F1978 #717819 #19781F
monochromatic
#110519 #2E0E45 #4F1978 #7024AB #9136D5

Accessibility & contrast

On white

12.05
#4F1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4F1978
12.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4F1978#FFFFFF#000000##FFFFFF
##4F19781.0012.051.7412.05
#FFFFFF12.051.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.051.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4f1978;
/* rgb */ color: rgb(79, 25, 120);
/* oklch */ color: oklch(35.3% 0.152 305.6);
Tailwind
colors: {
  custom: {
    50: '#855ca0',
    500: '#4f1978',
    950: '#000000',
  },
}
SCSS
$custom: #4f1978;
$custom-light: #855ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4f1978",
  "rgb": {
    "r": 79,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 274.105,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.35276,
    "c": 0.15151,
    "h": 305.6
  },
  "luminance": 0.03714
}

Semantic roles & 50–950 ramp

primary
#4F1978
secondary
#6FAD40
accent
#E83F88
background
#F8F5F9
surface
#F0E9F2
border
#CBC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4F1978

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

Preview Lab → · Contrast checker → · Palette generator →

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