#4A175A#4A175A

#4A175A is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.121 H 317.0°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#4A175A
RGBrgb(74, 23, 90)
HSLhsl(286, 59%, 22%)
HSVhsv(286, 74%, 35%)
CMYKcmyk(17.8%, 74.4%, 0%, 64.7%)
CIE-LABlab(19.25, 35.09, -29.30)
CIE-LCHlch(19.25, 45.71, 320.13°)
OKLaboklab(31.93% 0.0881 -0.0823)
OKLCHoklch(31.93% 0.121 317)
XYZxyz(4.9756, 2.8070, 9.9506)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A175A #275A17
analogous
#29175A #4A175A #5A1749
triadic
#4A175A #5A4A17 #175A4A
tetradic
#4A175A #5A2917 #275A17 #17495A
square
#4A175A #5A2917 #275A17 #17495A
split-complementary
#4A175A #495A17 #175A29
monochromatic
#140618 #220B29 #4A175A #72238B #9A30BB

Accessibility & contrast

On white

13.45
#4A175A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A175A
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A175A#FFFFFF#000000##FFFFFF
##4A175A1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a175a;
/* rgb */ color: rgb(74, 23, 90);
/* oklch */ color: oklch(31.9% 0.121 317.0);
Tailwind
colors: {
  custom: {
    50: '#7f5989',
    500: '#4a175a',
    950: '#000000',
  },
}
SCSS
$custom: #4a175a;
$custom-light: #7f5989;
$custom-dark: #000000;
JSON
{
  "hex": "#4a175a",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 90
  },
  "hsl": {
    "h": 285.672,
    "s": 59.292,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31927,
    "c": 0.12059,
    "h": 317
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#4A175A
secondary
#50913C
accent
#E2456B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #4A175A

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

Preview Lab → · Contrast checker → · Palette generator →

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