#4C184E#4C184E

#4C184E is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.5% C 0.108 H 326.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#4C184E
RGBrgb(76, 24, 78)
HSLhsl(298, 53%, 20%)
HSVhsv(298, 69%, 31%)
CMYKcmyk(2.6%, 69.2%, 0%, 69.4%)
CIE-LABlab(18.97, 32.55, -21.65)
CIE-LCHlch(18.97, 39.09, 326.38°)
OKLaboklab(31.54% 0.0897 -0.0599)
OKLCHoklch(31.54% 0.108 326.3)
XYZxyz(4.6822, 2.7401, 7.4885)
Luminance0.0274 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4C184E #1A4E18
analogous
#31184E #4C184E #4E1835
triadic
#4C184E #4E4C18 #184E4C
tetradic
#4C184E #4E3118 #1A4E18 #18354E
square
#4C184E #4E3118 #1A4E18 #18354E
split-complementary
#4C184E #354E18 #184E31
monochromatic
#170717 #1E0A1F #4C184E #7A267D #A735AC

Accessibility & contrast

On white

13.57
#4C184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4C184E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4C184E
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4C184E#FFFFFF#000000##FFFFFF
##4C184E1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102A50
Deuteranopia (green-blind)
#23304D
Tritanopia (blue-blind)
#4E2030
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4c184e;
/* rgb */ color: rgb(76, 24, 78);
/* oklch */ color: oklch(31.5% 0.108 326.3);
Tailwind
colors: {
  custom: {
    50: '#805980',
    500: '#4c184e',
    950: '#000000',
  },
}
SCSS
$custom: #4c184e;
$custom-light: #805980;
$custom-dark: #000000;
JSON
{
  "hex": "#4c184e",
  "rgb": {
    "r": 76,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 297.778,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.31537,
    "c": 0.10786,
    "h": 326.3
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#4C184E
secondary
#40853D
accent
#DC4B51
background
#F8F5F7
surface
#EFE9EE
border
#CAC5C9
text
#0A040A
muted
#7C797C

Preview Lab

Preview with #4C184E

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

Preview Lab → · Contrast checker → · Palette generator →

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