#4A1978#4A1978

#4A1978 is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.6% C 0.150 H 302.4°. Best body text is #FFFFFF at 12.34:1 contrast (WCAG AA passes).

Color values

HEX#4A1978
RGBrgb(74, 25, 120)
HSLhsl(271, 66%, 28%)
HSVhsv(271, 79%, 47%)
CMYKcmyk(38.3%, 79.2%, 0%, 52.9%)
CIE-LABlab(21.97, 41.44, -44.50)
CIE-LCHlch(21.97, 60.81, 312.96°)
OKLaboklab(34.61% 0.0806 -0.1269)
OKLCHoklch(34.61% 0.15 302.4)
XYZxyz(6.5610, 3.5072, 18.0969)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1978 #477819
analogous
#1A1978 #4A1978 #781976
triadic
#4A1978 #784A19 #19784A
tetradic
#4A1978 #781A19 #477819 #197678
square
#4A1978 #781A19 #477819 #197678
split-complementary
#4A1978 #767819 #19781A
monochromatic
#100519 #2B0E45 #4A1978 #6924AB #8836D5

Accessibility & contrast

On white

12.34
#4A1978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#4A1978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1978
12.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1978#FFFFFF#000000##FFFFFF
##4A19781.0012.341.7012.34
#FFFFFF12.341.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.341.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a1978;
/* rgb */ color: rgb(74, 25, 120);
/* oklch */ color: oklch(34.6% 0.150 302.4);
Tailwind
colors: {
  custom: {
    50: '#815ca0',
    500: '#4a1978',
    950: '#000000',
  },
}
SCSS
$custom: #4a1978;
$custom-light: #815ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1978",
  "rgb": {
    "r": 74,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 270.947,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34606,
    "c": 0.15038,
    "h": 302.4
  },
  "luminance": 0.03507
}

Semantic roles & 50–950 ramp

primary
#4A1978
secondary
#75AD40
accent
#E83F91
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4A1978

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

Preview Lab → · Contrast checker → · Palette generator →

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