#4A167A#4A167A

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

Color values

HEX#4A167A
RGBrgb(74, 22, 122)
HSLhsl(271, 69%, 28%)
HSVhsv(271, 82%, 48%)
CMYKcmyk(39.3%, 82%, 0%, 52.2%)
CIE-LABlab(21.71, 43.22, -46.20)
CIE-LCHlch(21.71, 63.27, 313.09°)
OKLaboklab(34.48% 0.0827 -0.1319)
OKLCHoklch(34.48% 0.156 302.1)
XYZxyz(6.6230, 3.4348, 18.7226)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A167A #467A16
analogous
#18167A #4A167A #7A1678
triadic
#4A167A #7A4A16 #167A4A
tetradic
#4A167A #7A1816 #467A16 #16787A
square
#4A167A #7A1816 #467A16 #16787A
split-complementary
#4A167A #787A16 #167A18
monochromatic
#10051A #2B0D46 #4A167A #691FAE #8931DA

Accessibility & contrast

On white

12.45
#4A167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A167A
12.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A167A#FFFFFF#000000##FFFFFF
##4A167A1.0012.451.6912.45
#FFFFFF12.451.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a167a;
/* rgb */ color: rgb(74, 22, 122);
/* oklch */ color: oklch(34.5% 0.156 302.1);
Tailwind
colors: {
  custom: {
    50: '#825aa1',
    500: '#4a167a',
    950: '#000000',
  },
}
SCSS
$custom: #4a167a;
$custom-light: #825aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#4a167a",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 271.2,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.34478,
    "c": 0.15573,
    "h": 302.1
  },
  "luminance": 0.03435
}

Semantic roles & 50–950 ramp

primary
#4A167A
secondary
#74AF3D
accent
#EC3C90
background
#F8F5FA
surface
#EFE9F3
border
#CAC5CD
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A167A

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

Preview Lab → · Contrast checker → · Palette generator →

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