#4A175B#4A175B

#4A175B is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.122 H 316.4°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#4A175B
RGBrgb(74, 23, 91)
HSLhsl(285, 60%, 22%)
HSVhsv(285, 75%, 36%)
CMYKcmyk(18.7%, 74.7%, 0%, 64.3%)
CIE-LABlab(19.33, 35.31, -29.86)
CIE-LCHlch(19.33, 46.24, 319.79°)
OKLaboklab(32% 0.0881 -0.0839)
OKLCHoklch(32% 0.122 316.4)
XYZxyz(5.0185, 2.8242, 10.1763)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A175B #285B17
analogous
#28175B #4A175B #5B174A
triadic
#4A175B #5B4A17 #175B4A
tetradic
#4A175B #5B2817 #285B17 #174A5B
square
#4A175B #5B2817 #285B17 #174A5B
split-complementary
#4A175B #4A5B17 #175B28
monochromatic
#140618 #220B2A #4A175B #72238C #9930BD

Accessibility & contrast

On white

13.42
#4A175B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4A175B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A175B
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A175B#FFFFFF#000000##FFFFFF
##4A175B1.0013.421.5613.42
#FFFFFF13.421.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a175b;
/* rgb */ color: rgb(74, 23, 91);
/* oklch */ color: oklch(32.0% 0.122 316.4);
Tailwind
colors: {
  custom: {
    50: '#7f598a',
    500: '#4a175b',
    950: '#000000',
  },
}
SCSS
$custom: #4a175b;
$custom-light: #7f598a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a175b",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 91
  },
  "hsl": {
    "h": 285,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.32002,
    "c": 0.12164,
    "h": 316.4
  },
  "luminance": 0.02824
}

Semantic roles & 50–950 ramp

primary
#4A175B
secondary
#51923C
accent
#E3456C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4A175B

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

Preview Lab → · Contrast checker → · Palette generator →

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