#4A165E#4A165E

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

Color values

HEX#4A165E
RGBrgb(74, 22, 94)
HSLhsl(283, 62%, 23%)
HSVhsv(283, 77%, 37%)
CMYKcmyk(21.3%, 76.6%, 0%, 63.1%)
CIE-LABlab(19.38, 36.46, -31.76)
CIE-LCHlch(19.38, 48.35, 318.94°)
OKLaboklab(32.11% 0.0889 -0.0895)
OKLCHoklch(32.11% 0.126 314.8)
XYZxyz(5.1310, 2.8380, 10.8650)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A165E #2A5E16
analogous
#26165E #4A165E #5E164E
triadic
#4A165E #5E4A16 #165E4A
tetradic
#4A165E #5E2616 #2A5E16 #164E5E
square
#4A165E #5E2616 #2A5E16 #164E5E
split-complementary
#4A165E #4E5E16 #165E26
monochromatic
#140619 #230A2C #4A165E #712290 #982DC1

Accessibility & contrast

On white

13.40
#4A165E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A165E
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A165E#FFFFFF#000000##FFFFFF
##4A165E1.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a165e;
/* rgb */ color: rgb(74, 22, 94);
/* oklch */ color: oklch(32.1% 0.126 314.8);
Tailwind
colors: {
  custom: {
    50: '#7f598c',
    500: '#4a165e',
    950: '#000000',
  },
}
SCSS
$custom: #4a165e;
$custom-light: #7f598c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a165e",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 94
  },
  "hsl": {
    "h": 283.333,
    "s": 62.069,
    "l": 22.745
  },
  "oklch": {
    "l": 0.32113,
    "c": 0.12615,
    "h": 314.8
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#4A165E
secondary
#54953B
accent
#E54370
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A040C
muted
#7C797D

Preview Lab

Preview with #4A165E

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

Preview Lab → · Contrast checker → · Palette generator →

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