#4A167B#4A167B

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

Color values

HEX#4A167B
RGBrgb(74, 22, 123)
HSLhsl(271, 70%, 28%)
HSVhsv(271, 82%, 48%)
CMYKcmyk(39.8%, 82.1%, 0%, 51.8%)
CIE-LABlab(21.80, 43.47, -46.69)
CIE-LCHlch(21.80, 63.79, 312.95°)
OKLaboklab(34.57% 0.0824 -0.1334)
OKLCHoklch(34.57% 0.157 301.7)
XYZxyz(6.6852, 3.4597, 19.0506)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A167B #477B16
analogous
#17167B #4A167B #7B1679
triadic
#4A167B #7B4A16 #167B4A
tetradic
#4A167B #7B1716 #477B16 #16797B
square
#4A167B #7B1716 #477B16 #16797B
split-complementary
#4A167B #797B16 #167B17
monochromatic
#10051A #2B0D47 #4A167B #691FAF #8831DA

Accessibility & contrast

On white

12.41
#4A167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A167B
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A167B#FFFFFF#000000##FFFFFF
##4A167B1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#3F3249
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #4a167b;
/* rgb */ color: rgb(74, 22, 123);
/* oklch */ color: oklch(34.6% 0.157 301.7);
Tailwind
colors: {
  custom: {
    50: '#825aa2',
    500: '#4a167b',
    950: '#000000',
  },
}
SCSS
$custom: #4a167b;
$custom-light: #825aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#4a167b",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 270.891,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.34569,
    "c": 0.15679,
    "h": 301.7
  },
  "luminance": 0.0346
}

Semantic roles & 50–950 ramp

primary
#4A167B
secondary
#75B03D
accent
#EC3B91
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A167B

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

Preview Lab → · Contrast checker → · Palette generator →

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