#4A165A#4A165A

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

Color values

HEX#4A165A
RGBrgb(74, 22, 90)
HSLhsl(286, 61%, 22%)
HSVhsv(286, 76%, 35%)
CMYKcmyk(17.8%, 75.6%, 0%, 64.7%)
CIE-LABlab(19.09, 35.55, -29.57)
CIE-LCHlch(19.09, 46.24, 320.25°)
OKLaboklab(31.81% 0.0893 -0.0831)
OKLCHoklch(31.81% 0.122 317.1)
XYZxyz(4.9561, 2.7681, 9.9441)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A165A #265A16
analogous
#28165A #4A165A #5A1648
triadic
#4A165A #5A4A16 #165A4A
tetradic
#4A165A #5A2816 #265A16 #16485A
square
#4A165A #5A2816 #265A16 #16485A
split-complementary
#4A165A #485A16 #165A28
monochromatic
#140619 #220A29 #4A165A #72228B #9B2EBC

Accessibility & contrast

On white

13.52
#4A165A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4A165A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A165A
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A165A#FFFFFF#000000##FFFFFF
##4A165A1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5C
Deuteranopia (green-blind)
#173058
Tritanopia (blue-blind)
#492336
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a165a;
/* rgb */ color: rgb(74, 22, 90);
/* oklch */ color: oklch(31.8% 0.122 317.1);
Tailwind
colors: {
  custom: {
    50: '#7f5989',
    500: '#4a165a',
    950: '#000000',
  },
}
SCSS
$custom: #4a165a;
$custom-light: #7f5989;
$custom-dark: #000000;
JSON
{
  "hex": "#4a165a",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 90
  },
  "hsl": {
    "h": 285.882,
    "s": 60.714,
    "l": 21.961
  },
  "oklch": {
    "l": 0.3181,
    "c": 0.12199,
    "h": 317.1
  },
  "luminance": 0.02768
}

Semantic roles & 50–950 ramp

primary
#4A165A
secondary
#4F913B
accent
#E4446A
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #4A165A

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

Preview Lab → · Contrast checker → · Palette generator →

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