#4A1779#4A1779

#4A1779 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.5% C 0.154 H 302.3°. Best body text is #FFFFFF at 12.43:1 contrast (WCAG AA passes).

Color values

HEX#4A1779
RGBrgb(74, 23, 121)
HSLhsl(271, 68%, 28%)
HSVhsv(271, 81%, 47%)
CMYKcmyk(38.8%, 81%, 0%, 52.5%)
CIE-LABlab(21.76, 42.56, -45.48)
CIE-LCHlch(21.76, 62.29, 313.10°)
OKLaboklab(34.49% 0.0822 -0.1298)
OKLCHoklch(34.49% 0.154 302.3)
XYZxyz(6.5808, 3.4491, 18.4045)
Luminance0.0345 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1779 #467917
analogous
#191779 #4A1779 #791777
triadic
#4A1779 #794A17 #17794A
tetradic
#4A1779 #791917 #467917 #177779
square
#4A1779 #791917 #467917 #177779
split-complementary
#4A1779 #777917 #177919
monochromatic
#10051A #2B0D46 #4A1779 #6921AC #8932D8

Accessibility & contrast

On white

12.43
#4A1779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1779
12.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1779#FFFFFF#000000##FFFFFF
##4A17791.0012.431.6912.43
#FFFFFF12.431.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#003477
Tritanopia (blue-blind)
#403148
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a1779;
/* rgb */ color: rgb(74, 23, 121);
/* oklch */ color: oklch(34.5% 0.154 302.3);
Tailwind
colors: {
  custom: {
    50: '#825ba1',
    500: '#4a1779',
    950: '#000000',
  },
}
SCSS
$custom: #4a1779;
$custom-light: #825ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1779",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 271.224,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34486,
    "c": 0.15364,
    "h": 302.3
  },
  "luminance": 0.03449
}

Semantic roles & 50–950 ramp

primary
#4A1779
secondary
#74AE3E
accent
#EB3D90
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A1779

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

Preview Lab → · Contrast checker → · Palette generator →

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