#4A165B#4A165B

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

Color values

HEX#4A165B
RGBrgb(74, 22, 91)
HSLhsl(285, 61%, 22%)
HSVhsv(285, 76%, 36%)
CMYKcmyk(18.7%, 75.8%, 0%, 64.3%)
CIE-LABlab(19.16, 35.77, -30.12)
CIE-LCHlch(19.16, 46.76, 319.90°)
OKLaboklab(31.89% 0.0892 -0.0847)
OKLCHoklch(31.89% 0.123 316.5)
XYZxyz(4.9990, 2.7852, 10.1698)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A165B #275B16
analogous
#27165B #4A165B #5B164A
triadic
#4A165B #5B4A16 #165B4A
tetradic
#4A165B #5B2716 #275B16 #164A5B
square
#4A165B #5B2716 #275B16 #164A5B
split-complementary
#4A165B #4A5B16 #165B27
monochromatic
#140619 #220A2A #4A165B #72228C #9A2EBE

Accessibility & contrast

On white

13.49
#4A165B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A165B
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A165B#FFFFFF#000000##FFFFFF
##4A165B1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5D
Deuteranopia (green-blind)
#163059
Tritanopia (blue-blind)
#492437
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a165b;
/* rgb */ color: rgb(74, 22, 91);
/* oklch */ color: oklch(31.9% 0.123 316.5);
Tailwind
colors: {
  custom: {
    50: '#7f598a',
    500: '#4a165b',
    950: '#000000',
  },
}
SCSS
$custom: #4a165b;
$custom-light: #7f598a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a165b",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 91
  },
  "hsl": {
    "h": 285.217,
    "s": 61.062,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31885,
    "c": 0.12303,
    "h": 316.5
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#4A165B
secondary
#50923B
accent
#E4446B
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4A165B

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

Preview Lab → · Contrast checker → · Palette generator →

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