#4A166D#4A166D

#4A166D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.142 H 307.4°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#4A166D
RGBrgb(74, 22, 109)
HSLhsl(276, 66%, 26%)
HSVhsv(276, 80%, 43%)
CMYKcmyk(32.1%, 79.8%, 0%, 57.3%)
CIE-LABlab(20.57, 40.01, -39.69)
CIE-LCHlch(20.57, 56.35, 315.23°)
OKLaboklab(33.33% 0.0862 -0.1128)
OKLCHoklch(33.33% 0.142 307.4)
XYZxyz(5.8707, 3.1339, 14.7607)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A166D #396D16
analogous
#1E166D #4A166D #6D1664
triadic
#4A166D #6D4A16 #166D4A
tetradic
#4A166D #6D1E16 #396D16 #16646D
square
#4A166D #6D1E16 #396D16 #16646D
split-complementary
#4A166D #646D16 #166D1E
monochromatic
#110519 #270C3A #4A166D #6D20A0 #8F2BD3

Accessibility & contrast

On white

12.91
#4A166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#4A166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A166D
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A166D#FFFFFF#000000##FFFFFF
##4A166D1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306F
Deuteranopia (green-blind)
#00326B
Tritanopia (blue-blind)
#442C41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a166d;
/* rgb */ color: rgb(74, 22, 109);
/* oklch */ color: oklch(33.3% 0.142 307.4);
Tailwind
colors: {
  custom: {
    50: '#815a97',
    500: '#4a166d',
    950: '#000000',
  },
}
SCSS
$custom: #4a166d;
$custom-light: #815a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4a166d",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 275.862,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3333,
    "c": 0.14196,
    "h": 307.4
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#4A166D
secondary
#65A33C
accent
#E93E83
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A166D

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

Preview Lab → · Contrast checker → · Palette generator →

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