#4A186B#4A186B

#4A186B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.137 H 308.0°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#4A186B
RGBrgb(74, 24, 107)
HSLhsl(276, 63%, 26%)
HSVhsv(276, 78%, 42%)
CMYKcmyk(30.8%, 77.6%, 0%, 58%)
CIE-LABlab(20.71, 38.64, -38.15)
CIE-LCHlch(20.71, 54.30, 315.36°)
OKLaboklab(33.38% 0.0846 -0.1083)
OKLCHoklch(33.38% 0.137 308)
XYZxyz(5.8040, 3.1707, 14.2133)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A186B #396B18
analogous
#21186B #4A186B #6B1862
triadic
#4A186B #6B4A18 #186B4A
tetradic
#4A186B #6B2118 #396B18 #18626B
square
#4A186B #6B2118 #396B18 #18626B
split-complementary
#4A186B #626B18 #186B21
monochromatic
#110619 #270D39 #4A186B #6D239D #8F2ECF

Accessibility & contrast

On white

12.85
#4A186B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A186B
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A186B#FFFFFF#000000##FFFFFF
##4A186B1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#003269
Tritanopia (blue-blind)
#452C40
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a186b;
/* rgb */ color: rgb(74, 24, 107);
/* oklch */ color: oklch(33.4% 0.137 308.0);
Tailwind
colors: {
  custom: {
    50: '#805a96',
    500: '#4a186b',
    950: '#000000',
  },
}
SCSS
$custom: #4a186b;
$custom-light: #805a96;
$custom-dark: #000000;
JSON
{
  "hex": "#4a186b",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 107
  },
  "hsl": {
    "h": 276.145,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.33379,
    "c": 0.13742,
    "h": 308
  },
  "luminance": 0.03171
}

Semantic roles & 50–950 ramp

primary
#4A186B
secondary
#65A13E
accent
#E64183
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040D
muted
#7C797E

Preview Lab

Preview with #4A186B

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

Preview Lab → · Contrast checker → · Palette generator →

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