#4A166B#4A166B

#4A166B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.140 H 308.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#4A166B
RGBrgb(74, 22, 107)
HSLhsl(277, 66%, 25%)
HSVhsv(277, 79%, 42%)
CMYKcmyk(30.8%, 79.4%, 0%, 58%)
CIE-LABlab(20.41, 39.52, -38.66)
CIE-LCHlch(20.41, 55.28, 315.63°)
OKLaboklab(33.16% 0.0867 -0.1097)
OKLCHoklch(33.16% 0.14 308.3)
XYZxyz(5.7642, 3.0913, 14.2001)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A166B #376B16
analogous
#20166B #4A166B #6B1661
triadic
#4A166B #6B4A16 #166B4A
tetradic
#4A166B #6B2016 #376B16 #16616B
square
#4A166B #6B2016 #376B16 #16616B
split-complementary
#4A166B #616B16 #166B20
monochromatic
#120519 #270C38 #4A166B #6D209E #902BD1

Accessibility & contrast

On white

12.98
#4A166B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#4A166B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A166B
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A166B#FFFFFF#000000##FFFFFF
##4A166B1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#452B40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a166b;
/* rgb */ color: rgb(74, 22, 107);
/* oklch */ color: oklch(33.2% 0.140 308.3);
Tailwind
colors: {
  custom: {
    50: '#805996',
    500: '#4a166b',
    950: '#000000',
  },
}
SCSS
$custom: #4a166b;
$custom-light: #805996;
$custom-dark: #000000;
JSON
{
  "hex": "#4a166b",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 107
  },
  "hsl": {
    "h": 276.706,
    "s": 65.891,
    "l": 25.294
  },
  "oklch": {
    "l": 0.3316,
    "c": 0.13984,
    "h": 308.3
  },
  "luminance": 0.03091
}

Semantic roles & 50–950 ramp

primary
#4A166B
secondary
#63A13B
accent
#E93F81
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A166B

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

Preview Lab → · Contrast checker → · Palette generator →

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