#4A185B#4A185B

#4A185B is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.1% C 0.120 H 316.2°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#4A185B
RGBrgb(74, 24, 91)
HSLhsl(285, 58%, 23%)
HSVhsv(285, 74%, 36%)
CMYKcmyk(18.7%, 73.6%, 0%, 64.3%)
CIE-LABlab(19.49, 34.84, -29.59)
CIE-LCHlch(19.49, 45.71, 319.66°)
OKLaboklab(32.12% 0.0868 -0.0831)
OKLCHoklch(32.12% 0.12 316.2)
XYZxyz(5.0387, 2.8646, 10.1830)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A185B #295B18
analogous
#28185B #4A185B #5B184B
triadic
#4A185B #5B4A18 #185B4A
tetradic
#4A185B #5B2818 #295B18 #184B5B
square
#4A185B #5B2818 #295B18 #184B5B
split-complementary
#4A185B #4B5B18 #185B28
monochromatic
#140618 #230B2B #4A185B #71258B #9932BC

Accessibility & contrast

On white

13.35
#4A185B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A185B
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A185B#FFFFFF#000000##FFFFFF
##4A185B1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a185b;
/* rgb */ color: rgb(74, 24, 91);
/* oklch */ color: oklch(32.1% 0.120 316.2);
Tailwind
colors: {
  custom: {
    50: '#7f5a8a',
    500: '#4a185b',
    950: '#000000',
  },
}
SCSS
$custom: #4a185b;
$custom-light: #7f5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a185b",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 91
  },
  "hsl": {
    "h": 284.776,
    "s": 58.261,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32122,
    "c": 0.12022,
    "h": 316.2
  },
  "luminance": 0.02864
}

Semantic roles & 50–950 ramp

primary
#4A185B
secondary
#53923D
accent
#E1466E
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4A185B

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

Preview Lab → · Contrast checker → · Palette generator →

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