#4A1148#4A1148

#4A1148 is a dark, moderate purple. Relative luminance 0.023; OKLCH L 30.0% C 0.111 H 329.4°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#4A1148
RGBrgb(74, 17, 72)
HSLhsl(302, 63%, 18%)
HSVhsv(302, 77%, 29%)
CMYKcmyk(0%, 77%, 2.7%, 71%)
CIE-LABlab(17.11, 33.98, -20.51)
CIE-LCHlch(17.11, 39.69, 328.89°)
OKLaboklab(30% 0.0958 -0.0566)
OKLCHoklch(30% 0.111 329.4)
XYZxyz(4.1942, 2.3249, 6.3575)
Luminance0.0232 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1148 #114A13
analogous
#2F114A #4A1148 #4A112B
triadic
#4A1148 #484A11 #11484A
tetradic
#4A1148 #4A2F11 #114A13 #112B4A
square
#4A1148 #4A2F11 #114A13 #112B4A
split-complementary
#4A1148 #2B4A11 #114A2F
monochromatic
#190618 #190618 #4A1148 #7C1C78 #AE28A9

Accessibility & contrast

On white

14.33
#4A1148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#4A1148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A1148
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1148#FFFFFF#000000##FFFFFF
##4A11481.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A254A
Deuteranopia (green-blind)
#212D47
Tritanopia (blue-blind)
#4D182B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #4a1148;
/* rgb */ color: rgb(74, 17, 72);
/* oklch */ color: oklch(30.0% 0.111 329.4);
Tailwind
colors: {
  custom: {
    50: '#7f557b',
    500: '#4a1148',
    950: '#000000',
  },
}
SCSS
$custom: #4a1148;
$custom-light: #7f557b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1148",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 302.105,
    "s": 62.637,
    "l": 17.843
  },
  "oklch": {
    "l": 0.30001,
    "c": 0.11127,
    "h": 329.4
  },
  "luminance": 0.02325
}

Semantic roles & 50–950 ramp

primary
#4A1148
secondary
#338336
accent
#E64842
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4A1148

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

Preview Lab → · Contrast checker → · Palette generator →

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