#4A165C#4A165C

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

Color values

HEX#4A165C
RGBrgb(74, 22, 92)
HSLhsl(285, 61%, 22%)
HSVhsv(285, 76%, 36%)
CMYKcmyk(19.6%, 76.1%, 0%, 63.9%)
CIE-LABlab(19.24, 36.00, -30.67)
CIE-LCHlch(19.24, 47.29, 319.57°)
OKLaboklab(31.96% 0.0891 -0.0863)
OKLCHoklch(31.96% 0.124 315.9)
XYZxyz(5.0424, 2.8026, 10.3985)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A165C #285C16
analogous
#27165C #4A165C #5C164B
triadic
#4A165C #5C4A16 #165C4A
tetradic
#4A165C #5C2716 #285C16 #164B5C
square
#4A165C #5C2716 #285C16 #164B5C
split-complementary
#4A165C #4B5C16 #165C27
monochromatic
#140619 #220A2B #4A165C #72228D #992EBF

Accessibility & contrast

On white

13.46
#4A165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A165C
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A165C#FFFFFF#000000##FFFFFF
##4A165C1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a165c;
/* rgb */ color: rgb(74, 22, 92);
/* oklch */ color: oklch(32.0% 0.124 315.9);
Tailwind
colors: {
  custom: {
    50: '#7f598b',
    500: '#4a165c',
    950: '#000000',
  },
}
SCSS
$custom: #4a165c;
$custom-light: #7f598b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a165c",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 284.571,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3196,
    "c": 0.12406,
    "h": 315.9
  },
  "luminance": 0.02802
}

Semantic roles & 50–950 ramp

primary
#4A165C
secondary
#51933B
accent
#E5436D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4A165C

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

Preview Lab → · Contrast checker → · Palette generator →

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