#4A166F#4A166F

#4A166F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.144 H 306.5°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#4A166F
RGBrgb(74, 22, 111)
HSLhsl(275, 67%, 26%)
HSVhsv(275, 80%, 44%)
CMYKcmyk(33.3%, 80.2%, 0%, 56.5%)
CIE-LABlab(20.74, 40.49, -40.71)
CIE-LCHlch(20.74, 57.42, 314.85°)
OKLaboklab(33.5% 0.0857 -0.1158)
OKLCHoklch(33.5% 0.144 306.5)
XYZxyz(5.9796, 3.1774, 15.3341)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A166F #3B6F16
analogous
#1D166F #4A166F #6F1667
triadic
#4A166F #6F4A16 #166F4A
tetradic
#4A166F #6F1D16 #3B6F16 #16676F
square
#4A166F #6F1D16 #3B6F16 #16676F
split-complementary
#4A166F #676F16 #166F1D
monochromatic
#11051A #280C3C #4A166F #6C20A2 #8E2BD5

Accessibility & contrast

On white

12.84
#4A166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4A166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A166F
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A166F#FFFFFF#000000##FFFFFF
##4A166F1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#432C42
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a166f;
/* rgb */ color: rgb(74, 22, 111);
/* oklch */ color: oklch(33.5% 0.144 306.5);
Tailwind
colors: {
  custom: {
    50: '#815a99',
    500: '#4a166f',
    950: '#000000',
  },
}
SCSS
$custom: #4a166f;
$custom-light: #815a99;
$custom-dark: #000000;
JSON
{
  "hex": "#4a166f",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 275.056,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33501,
    "c": 0.14408,
    "h": 306.5
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#4A166F
secondary
#68A53C
accent
#EA3E85
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A166F

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

Preview Lab → · Contrast checker → · Palette generator →

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