#4A1778#4A1778

#4A1778 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.153 H 302.7°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#4A1778
RGBrgb(74, 23, 120)
HSLhsl(272, 68%, 28%)
HSVhsv(272, 81%, 47%)
CMYKcmyk(38.3%, 80.8%, 0%, 52.9%)
CIE-LABlab(21.67, 42.30, -44.99)
CIE-LCHlch(21.67, 61.75, 313.24°)
OKLaboklab(34.4% 0.0825 -0.1284)
OKLCHoklch(34.4% 0.153 302.7)
XYZxyz(6.5198, 3.4247, 18.0832)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1778 #457817
analogous
#191778 #4A1778 #781775
triadic
#4A1778 #784A17 #17784A
tetradic
#4A1778 #781917 #457817 #177578
square
#4A1778 #781917 #457817 #177578
split-complementary
#4A1778 #757817 #177819
monochromatic
#10051A #2A0D45 #4A1778 #6A21AB #8932D8

Accessibility & contrast

On white

12.46
#4A1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#4A1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1778
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1778#FFFFFF#000000##FFFFFF
##4A17781.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003476
Tritanopia (blue-blind)
#403147
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1778;
/* rgb */ color: rgb(74, 23, 120);
/* oklch */ color: oklch(34.4% 0.153 302.7);
Tailwind
colors: {
  custom: {
    50: '#825ba0',
    500: '#4a1778',
    950: '#000000',
  },
}
SCSS
$custom: #4a1778;
$custom-light: #825ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1778",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 271.546,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.34396,
    "c": 0.15257,
    "h": 302.7
  },
  "luminance": 0.03425
}

Semantic roles & 50–950 ramp

primary
#4A1778
secondary
#73AD3E
accent
#EB3D8F
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040F
muted
#7C797E

Preview Lab

Preview with #4A1778

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

Preview Lab → · Contrast checker → · Palette generator →

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