#4A185C#4A185C

#4A185C is a dark, vivid purple. Relative luminance 0.029; OKLCH L 32.2% C 0.121 H 315.7°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#4A185C
RGBrgb(74, 24, 92)
HSLhsl(284, 59%, 23%)
HSVhsv(284, 74%, 36%)
CMYKcmyk(19.6%, 73.9%, 0%, 63.9%)
CIE-LABlab(19.57, 35.07, -30.14)
CIE-LCHlch(19.57, 46.24, 319.32°)
OKLaboklab(32.2% 0.0868 -0.0848)
OKLCHoklch(32.2% 0.121 315.7)
XYZxyz(5.0821, 2.8820, 10.4117)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A185C #2A5C18
analogous
#28185C #4A185C #5C184C
triadic
#4A185C #5C4A18 #185C4A
tetradic
#4A185C #5C2818 #2A5C18 #184C5C
square
#4A185C #5C2818 #2A5C18 #184C5C
split-complementary
#4A185C #4C5C18 #185C28
monochromatic
#140618 #230B2B #4A185C #71258D #9831BD

Accessibility & contrast

On white

13.32
#4A185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#4A185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A185C
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A185C#FFFFFF#000000##FFFFFF
##4A185C1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5E
Deuteranopia (green-blind)
#17315A
Tritanopia (blue-blind)
#492538
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4a185c;
/* rgb */ color: rgb(74, 24, 92);
/* oklch */ color: oklch(32.2% 0.121 315.7);
Tailwind
colors: {
  custom: {
    50: '#7f5a8a',
    500: '#4a185c',
    950: '#000000',
  },
}
SCSS
$custom: #4a185c;
$custom-light: #7f5a8a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a185c",
  "rgb": {
    "r": 74,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 284.118,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32196,
    "c": 0.12129,
    "h": 315.7
  },
  "luminance": 0.02882
}

Semantic roles & 50–950 ramp

primary
#4A185C
secondary
#54933D
accent
#E2466F
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4A185C

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

Preview Lab → · Contrast checker → · Palette generator →

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