#4A166C#4A166C

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

Color values

HEX#4A166C
RGBrgb(74, 22, 108)
HSLhsl(276, 66%, 25%)
HSVhsv(276, 80%, 42%)
CMYKcmyk(31.5%, 79.6%, 0%, 57.6%)
CIE-LABlab(20.49, 39.76, -39.17)
CIE-LCHlch(20.49, 55.82, 315.43°)
OKLaboklab(33.25% 0.0864 -0.1113)
OKLCHoklch(33.25% 0.141 307.8)
XYZxyz(5.8172, 3.1125, 14.4788)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A166C #386C16
analogous
#1F166C #4A166C #6C1663
triadic
#4A166C #6C4A16 #166C4A
tetradic
#4A166C #6C1F16 #386C16 #16636C
square
#4A166C #6C1F16 #386C16 #16636C
split-complementary
#4A166C #636C16 #166C1F
monochromatic
#110519 #270C39 #4A166C #6D209F #902BD2

Accessibility & contrast

On white

12.94
#4A166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A166C
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A166C#FFFFFF#000000##FFFFFF
##4A166C1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#00326A
Tritanopia (blue-blind)
#442B40
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #4a166c;
/* rgb */ color: rgb(74, 22, 108);
/* oklch */ color: oklch(33.2% 0.141 307.8);
Tailwind
colors: {
  custom: {
    50: '#805997',
    500: '#4a166c',
    950: '#000000',
  },
}
SCSS
$custom: #4a166c;
$custom-light: #805997;
$custom-dark: #000000;
JSON
{
  "hex": "#4a166c",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 276.279,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33245,
    "c": 0.1409,
    "h": 307.8
  },
  "luminance": 0.03112
}

Semantic roles & 50–950 ramp

primary
#4A166C
secondary
#64A23C
accent
#E93F82
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A166C

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

Preview Lab → · Contrast checker → · Palette generator →

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