#4A175C#4A175C

#4A175C is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.1% C 0.123 H 315.8°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#4A175C
RGBrgb(74, 23, 92)
HSLhsl(284, 60%, 23%)
HSVhsv(284, 75%, 36%)
CMYKcmyk(19.6%, 75%, 0%, 63.9%)
CIE-LABlab(19.40, 35.54, -30.41)
CIE-LCHlch(19.40, 46.77, 319.45°)
OKLaboklab(32.08% 0.088 -0.0855)
OKLCHoklch(32.08% 0.123 315.8)
XYZxyz(5.0619, 2.8415, 10.4050)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A175C #295C17
analogous
#28175C #4A175C #5C174B
triadic
#4A175C #5C4A17 #175C4A
tetradic
#4A175C #5C2817 #295C17 #174B5C
square
#4A175C #5C2817 #295C17 #174B5C
split-complementary
#4A175C #4B5C17 #175C28
monochromatic
#140618 #230B2B #4A175C #71238D #992FBE

Accessibility & contrast

On white

13.39
#4A175C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#4A175C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A175C
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A175C#FFFFFF#000000##FFFFFF
##4A175C1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a175c;
/* rgb */ color: rgb(74, 23, 92);
/* oklch */ color: oklch(32.1% 0.123 315.8);
Tailwind
colors: {
  custom: {
    50: '#7f598b',
    500: '#4a175c',
    950: '#000000',
  },
}
SCSS
$custom: #4a175c;
$custom-light: #7f598b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a175c",
  "rgb": {
    "r": 74,
    "g": 23,
    "b": 92
  },
  "hsl": {
    "h": 284.348,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.32076,
    "c": 0.12269,
    "h": 315.8
  },
  "luminance": 0.02841
}

Semantic roles & 50–950 ramp

primary
#4A175C
secondary
#53933C
accent
#E3456E
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4A175C

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

Preview Lab → · Contrast checker → · Palette generator →

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