#4A166A#4A166A

#4A166A is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.139 H 308.8°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#4A166A
RGBrgb(74, 22, 106)
HSLhsl(277, 66%, 25%)
HSVhsv(277, 79%, 42%)
CMYKcmyk(30.2%, 79.2%, 0%, 58.4%)
CIE-LABlab(20.32, 39.28, -38.14)
CIE-LCHlch(20.32, 54.75, 315.85°)
OKLaboklab(33.08% 0.0869 -0.1082)
OKLCHoklch(33.08% 0.139 308.8)
XYZxyz(5.7119, 3.0704, 13.9246)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A166A #366A16
analogous
#20166A #4A166A #6A1660
triadic
#4A166A #6A4A16 #166A4A
tetradic
#4A166A #6A2016 #366A16 #16606A
square
#4A166A #6A2016 #366A16 #16606A
split-complementary
#4A166A #606A16 #166A20
monochromatic
#120519 #270B37 #4A166A #6D219D #912BCF

Accessibility & contrast

On white

13.01
#4A166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#4A166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A166A
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A166A#FFFFFF#000000##FFFFFF
##4A166A1.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6C
Deuteranopia (green-blind)
#003268
Tritanopia (blue-blind)
#452A3F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a166a;
/* rgb */ color: rgb(74, 22, 106);
/* oklch */ color: oklch(33.1% 0.139 308.8);
Tailwind
colors: {
  custom: {
    50: '#805995',
    500: '#4a166a',
    950: '#000000',
  },
}
SCSS
$custom: #4a166a;
$custom-light: #805995;
$custom-dark: #000000;
JSON
{
  "hex": "#4a166a",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 277.143,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.33077,
    "c": 0.13879,
    "h": 308.8
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#4A166A
secondary
#62A03B
accent
#E93F80
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A166A

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

Preview Lab → · Contrast checker → · Palette generator →

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