#4A175E#4A175E

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

Color values

HEX#4A175E
RGBrgb(74, 23, 94)
HSLhsl(283, 61%, 23%)
HSVhsv(283, 76%, 37%)
CMYKcmyk(21.3%, 75.5%, 0%, 63.1%)
CIE-LABlab(19.54, 36.00, -31.50)
CIE-LCHlch(19.54, 47.84, 318.81°)
OKLaboklab(32.23% 0.0878 -0.0887)
OKLCHoklch(32.23% 0.125 314.7)
XYZxyz(5.1505, 2.8770, 10.8715)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A175E #2B5E17
analogous
#27175E #4A175E #5E174E
triadic
#4A175E #5E4A17 #175E4A
tetradic
#4A175E #5E2717 #2B5E17 #174E5E
square
#4A175E #5E2717 #2B5E17 #174E5E
split-complementary
#4A175E #4E5E17 #175E27
monochromatic
#130619 #230B2D #4A175E #71238F #972FC0

Accessibility & contrast

On white

13.33
#4A175E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A175E
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A175E#FFFFFF#000000##FFFFFF
##4A175E1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#14315C
Tritanopia (blue-blind)
#482639
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #4a175e;
/* rgb */ color: rgb(74, 23, 94);
/* oklch */ color: oklch(32.2% 0.125 314.7);
Tailwind
colors: {
  custom: {
    50: '#7f598c',
    500: '#4a175e',
    950: '#000000',
  },
}
SCSS
$custom: #4a175e;
$custom-light: #7f598c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a175e",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 94
  },
  "hsl": {
    "h": 283.099,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.32228,
    "c": 0.12481,
    "h": 314.7
  },
  "luminance": 0.02877
}

Semantic roles & 50–950 ramp

primary
#4A175E
secondary
#55953C
accent
#E44471
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4A175E

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

Preview Lab → · Contrast checker → · Palette generator →

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