#4A167F#4A167F

#4A167F is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.161 H 300.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#4A167F
RGBrgb(74, 22, 127)
HSLhsl(270, 70%, 29%)
HSVhsv(270, 83%, 50%)
CMYKcmyk(41.7%, 82.7%, 0%, 50.2%)
CIE-LABlab(22.17, 44.48, -48.63)
CIE-LCHlch(22.17, 65.90, 312.45°)
OKLaboklab(34.94% 0.0812 -0.1391)
OKLCHoklch(34.94% 0.161 300.3)
XYZxyz(6.9408, 3.5619, 20.3964)
Luminance0.0356 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A167F #4B7F16
analogous
#16177F #4A167F #7F167F
triadic
#4A167F #7F4A16 #167F4A
tetradic
#4A167F #7F1617 #4B7F16 #167F7F
square
#4A167F #7F1617 #4B7F16 #167F7F
split-complementary
#4A167F #7F7F16 #177F16
monochromatic
#0F051A #2C0D4B #4A167F #681FB3 #8734DC

Accessibility & contrast

On white

12.26
#4A167F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#4A167F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A167F
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A167F#FFFFFF#000000##FFFFFF
##4A167F1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#00347D
Tritanopia (blue-blind)
#3E334B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a167f;
/* rgb */ color: rgb(74, 22, 127);
/* oklch */ color: oklch(34.9% 0.161 300.3);
Tailwind
colors: {
  custom: {
    50: '#825ba5',
    500: '#4a167f',
    950: '#000000',
  },
}
SCSS
$custom: #4a167f;
$custom-light: #825ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#4a167f",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 127
  },
  "hsl": {
    "h": 269.714,
    "s": 70.47,
    "l": 29.216
  },
  "oklch": {
    "l": 0.34939,
    "c": 0.16102,
    "h": 300.3
  },
  "luminance": 0.03562
}

Semantic roles & 50–950 ramp

primary
#4A167F
secondary
#79B43D
accent
#ED3B95
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A167F

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

Preview Lab → · Contrast checker → · Palette generator →

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