#4A167E#4A167E

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

Color values

HEX#4A167E
RGBrgb(74, 22, 126)
HSLhsl(270, 70%, 29%)
HSVhsv(270, 83%, 49%)
CMYKcmyk(41.3%, 82.5%, 0%, 50.6%)
CIE-LABlab(22.07, 44.23, -48.15)
CIE-LCHlch(22.07, 65.38, 312.57°)
OKLaboklab(34.85% 0.0815 -0.1376)
OKLCHoklch(34.85% 0.16 300.6)
XYZxyz(6.8759, 3.5360, 20.0549)
Luminance0.0354 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A167E #4A7E16
analogous
#16167E #4A167E #7E167E
triadic
#4A167E #7E4A16 #167E4A
tetradic
#4A167E #7E1616 #4A7E16 #167E7E
square
#4A167E #7E1616 #4A7E16 #167E7E
split-complementary
#4A167E #7E7E16 #167E16
monochromatic
#0F051A #2B0D4A #4A167E #691FB2 #8733DB

Accessibility & contrast

On white

12.30
#4A167E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A167E
12.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A167E#FFFFFF#000000##FFFFFF
##4A167E1.0012.301.7112.30
#FFFFFF12.301.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00347C
Tritanopia (blue-blind)
#3E334A
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #4a167e;
/* rgb */ color: rgb(74, 22, 126);
/* oklch */ color: oklch(34.8% 0.160 300.6);
Tailwind
colors: {
  custom: {
    50: '#825ba4',
    500: '#4a167e',
    950: '#000000',
  },
}
SCSS
$custom: #4a167e;
$custom-light: #825ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#4a167e",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 126
  },
  "hsl": {
    "h": 270,
    "s": 70.27,
    "l": 29.02
  },
  "oklch": {
    "l": 0.34846,
    "c": 0.15996,
    "h": 300.6
  },
  "luminance": 0.03536
}

Semantic roles & 50–950 ramp

primary
#4A167E
secondary
#78B33D
accent
#ED3B94
background
#F8F5FA
surface
#EFE9F4
border
#CAC5CE
text
#0B040F
muted
#7C797F

Preview Lab

Preview with #4A167E

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

Preview Lab → · Contrast checker → · Palette generator →

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