#4A177A#4A177A

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

Color values

HEX#4A177A
RGBrgb(74, 23, 122)
HSLhsl(271, 68%, 28%)
HSVhsv(271, 81%, 48%)
CMYKcmyk(39.3%, 81.1%, 0%, 52.2%)
CIE-LABlab(21.85, 42.81, -45.97)
CIE-LCHlch(21.85, 62.82, 312.96°)
OKLaboklab(34.58% 0.0819 -0.1313)
OKLCHoklch(34.58% 0.155 302)
XYZxyz(6.6424, 3.4738, 18.7291)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A177A #477A17
analogous
#18177A #4A177A #7A1778
triadic
#4A177A #7A4A17 #177A4A
tetradic
#4A177A #7A1817 #477A17 #17787A
square
#4A177A #7A1817 #477A17 #17787A
split-complementary
#4A177A #787A17 #177A18
monochromatic
#10051A #2B0D47 #4A177A #6921AD #8833D9

Accessibility & contrast

On white

12.39
#4A177A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A177A
12.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A177A#FFFFFF#000000##FFFFFF
##4A177A1.0012.391.6912.39
#FFFFFF12.391.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003478
Tritanopia (blue-blind)
#403248
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a177a;
/* rgb */ color: rgb(74, 23, 122);
/* oklch */ color: oklch(34.6% 0.155 302.0);
Tailwind
colors: {
  custom: {
    50: '#825ba1',
    500: '#4a177a',
    950: '#000000',
  },
}
SCSS
$custom: #4a177a;
$custom-light: #825ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a177a",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 122
  },
  "hsl": {
    "h": 270.909,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34577,
    "c": 0.1547,
    "h": 302
  },
  "luminance": 0.03474
}

Semantic roles & 50–950 ramp

primary
#4A177A
secondary
#75AF3E
accent
#EB3D91
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A177A

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

Preview Lab → · Contrast checker → · Palette generator →

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