#4A186D#4A186D

#4A186D is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.140 H 307.1°. Best body text is #FFFFFF at 12.78:1 contrast (WCAG AA passes).

Color values

HEX#4A186D
RGBrgb(74, 24, 109)
HSLhsl(275, 64%, 26%)
HSVhsv(275, 78%, 43%)
CMYKcmyk(32.1%, 78%, 0%, 57.3%)
CIE-LABlab(20.88, 39.13, -39.19)
CIE-LCHlch(20.88, 55.38, 314.96°)
OKLaboklab(33.55% 0.0842 -0.1113)
OKLCHoklch(33.55% 0.14 307.1)
XYZxyz(5.9104, 3.2133, 14.7739)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A186D #3B6D18
analogous
#1F186D #4A186D #6D1865
triadic
#4A186D #6D4A18 #186D4A
tetradic
#4A186D #6D1F18 #3B6D18 #18656D
square
#4A186D #6D1F18 #3B6D18 #18656D
split-complementary
#4A186D #656D18 #186D1F
monochromatic
#110619 #280D3B #4A186D #6C239F #8E2ED1

Accessibility & contrast

On white

12.78
#4A186D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#4A186D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A186D
12.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A186D#FFFFFF#000000##FFFFFF
##4A186D1.0012.781.6412.78
#FFFFFF12.781.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00316F
Deuteranopia (green-blind)
#00336B
Tritanopia (blue-blind)
#442C41
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #4a186d;
/* rgb */ color: rgb(74, 24, 109);
/* oklch */ color: oklch(33.5% 0.140 307.1);
Tailwind
colors: {
  custom: {
    50: '#805a97',
    500: '#4a186d',
    950: '#000000',
  },
}
SCSS
$custom: #4a186d;
$custom-light: #805a97;
$custom-dark: #000000;
JSON
{
  "hex": "#4a186d",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 109
  },
  "hsl": {
    "h": 275.294,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.33546,
    "c": 0.13959,
    "h": 307.1
  },
  "luminance": 0.03213
}

Semantic roles & 50–950 ramp

primary
#4A186D
secondary
#68A33E
accent
#E74185
background
#F8F5F9
surface
#EFE9F2
border
#CAC5CC
text
#0B040E
muted
#7C797E

Preview Lab

Preview with #4A186D

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

Preview Lab → · Contrast checker → · Palette generator →

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