#4A186A#4A186A

#4A186A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.136 H 308.5°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#4A186A
RGBrgb(74, 24, 106)
HSLhsl(277, 63%, 25%)
HSVhsv(277, 77%, 42%)
CMYKcmyk(30.2%, 77.4%, 0%, 58.4%)
CIE-LABlab(20.63, 38.40, -37.63)
CIE-LCHlch(20.63, 53.76, 315.57°)
OKLaboklab(33.3% 0.0848 -0.1068)
OKLCHoklch(33.3% 0.136 308.5)
XYZxyz(5.7517, 3.1498, 13.9379)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A186A #386A18
analogous
#21186A #4A186A #6A1861
triadic
#4A186A #6A4A18 #186A4A
tetradic
#4A186A #6A2118 #386A18 #18616A
square
#4A186A #6A2118 #386A18 #18616A
split-complementary
#4A186A #616A18 #186A21
monochromatic
#110619 #270D38 #4A186A #6D239C #902FCE

Accessibility & contrast

On white

12.88
#4A186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A186A
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A186A#FFFFFF#000000##FFFFFF
##4A186A1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#013268
Tritanopia (blue-blind)
#452B3F
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a186a;
/* rgb */ color: rgb(74, 24, 106);
/* oklch */ color: oklch(33.3% 0.136 308.5);
Tailwind
colors: {
  custom: {
    50: '#805a95',
    500: '#4a186a',
    950: '#000000',
  },
}
SCSS
$custom: #4a186a;
$custom-light: #805a95;
$custom-dark: #000000;
JSON
{
  "hex": "#4a186a",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 276.585,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33296,
    "c": 0.13635,
    "h": 308.5
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#4A186A
secondary
#64A03E
accent
#E64282
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A186A

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

Preview Lab → · Contrast checker → · Palette generator →

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