#4A185A#4A185A

#4A185A is a dark, moderate purple. Relative luminance 0.028; OKLCH L 32.0% C 0.119 H 316.8°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#4A185A
RGBrgb(74, 24, 90)
HSLhsl(285, 58%, 22%)
HSVhsv(285, 73%, 35%)
CMYKcmyk(17.8%, 73.3%, 0%, 64.7%)
CIE-LABlab(19.42, 34.61, -29.03)
CIE-LCHlch(19.42, 45.18, 320.01°)
OKLaboklab(32.05% 0.0869 -0.0815)
OKLCHoklch(32.05% 0.119 316.8)
XYZxyz(4.9959, 2.8475, 9.9573)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A185A #285A18
analogous
#29185A #4A185A #5A1849
triadic
#4A185A #5A4A18 #185A4A
tetradic
#4A185A #5A2918 #285A18 #18495A
square
#4A185A #5A2918 #285A18 #18495A
split-complementary
#4A185A #495A18 #185A29
monochromatic
#140618 #220B2A #4A185A #72258A #9932BB

Accessibility & contrast

On white

13.38
#4A185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4A185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A185A
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A185A#FFFFFF#000000##FFFFFF
##4A185A1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5C
Deuteranopia (green-blind)
#193158
Tritanopia (blue-blind)
#492537
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4a185a;
/* rgb */ color: rgb(74, 24, 90);
/* oklch */ color: oklch(32.0% 0.119 316.8);
Tailwind
colors: {
  custom: {
    50: '#7f5a89',
    500: '#4a185a',
    950: '#000000',
  },
}
SCSS
$custom: #4a185a;
$custom-light: #7f5a89;
$custom-dark: #000000;
JSON
{
  "hex": "#4a185a",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 285.455,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32048,
    "c": 0.11916,
    "h": 316.8
  },
  "luminance": 0.02847
}

Semantic roles & 50–950 ramp

primary
#4A185A
secondary
#51913D
accent
#E1476C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #4A185A

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

Preview Lab → · Contrast checker → · Palette generator →

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