#4A167D#4A167D

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

Color values

HEX#4A167D
RGBrgb(74, 22, 125)
HSLhsl(270, 70%, 29%)
HSVhsv(270, 82%, 49%)
CMYKcmyk(40.8%, 82.4%, 0%, 51%)
CIE-LABlab(21.98, 43.97, -47.66)
CIE-LCHlch(21.98, 64.85, 312.69°)
OKLaboklab(34.75% 0.0818 -0.1362)
OKLCHoklch(34.75% 0.159 301)
XYZxyz(6.8117, 3.5103, 19.7167)
Luminance0.0351 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A167D #497D16
analogous
#16167D #4A167D #7D167D
triadic
#4A167D #7D4A16 #167D4A
tetradic
#4A167D #7D1616 #497D16 #167D7D
square
#4A167D #7D1616 #497D16 #167D7D
split-complementary
#4A167D #7D7D16 #167D16
monochromatic
#0F051A #2B0D49 #4A167D #691FB1 #8832DB

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##4A167D#FFFFFF#000000##FFFFFF
##4A167D1.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)
#003480
Deuteranopia (green-blind)
#00347B
Tritanopia (blue-blind)
#3E324A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a167d;
/* rgb */ color: rgb(74, 22, 125);
/* oklch */ color: oklch(34.8% 0.159 301.0);
Tailwind
colors: {
  custom: {
    50: '#825aa4',
    500: '#4a167d',
    950: '#000000',
  },
}
SCSS
$custom: #4a167d;
$custom-light: #825aa4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a167d",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 125
  },
  "hsl": {
    "h": 270.291,
    "s": 70.068,
    "l": 28.824
  },
  "oklch": {
    "l": 0.34753,
    "c": 0.1589,
    "h": 301
  },
  "luminance": 0.0351
}

Semantic roles & 50–950 ramp

primary
#4A167D
secondary
#77B23D
accent
#ED3B93
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A167D

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

Preview Lab → · Contrast checker → · Palette generator →

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