#4A1658#4A1658

#4A1658 is a dark, moderate purple. Relative luminance 0.027; OKLCH L 31.7% C 0.120 H 318.3°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#4A1658
RGBrgb(74, 22, 88)
HSLhsl(287, 60%, 22%)
HSVhsv(287, 75%, 35%)
CMYKcmyk(15.9%, 75%, 0%, 65.5%)
CIE-LABlab(18.95, 35.10, -28.46)
CIE-LCHlch(18.95, 45.19, 320.97°)
OKLaboklab(31.66% 0.0895 -0.0798)
OKLCHoklch(31.66% 0.12 318.3)
XYZxyz(4.8722, 2.7345, 9.5018)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A1658 #245816
analogous
#291658 #4A1658 #581645
triadic
#4A1658 #584A16 #16584A
tetradic
#4A1658 #582916 #245816 #164558
square
#4A1658 #582916 #245816 #164558
split-complementary
#4A1658 #455816 #165829
monochromatic
#150618 #210A27 #4A1658 #732289 #9C2EBA

Accessibility & contrast

On white

13.58
#4A1658 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A1658
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A1658#FFFFFF#000000##FFFFFF
##4A16581.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5A
Deuteranopia (green-blind)
#193056
Tritanopia (blue-blind)
#4A2335
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a1658;
/* rgb */ color: rgb(74, 22, 88);
/* oklch */ color: oklch(31.7% 0.120 318.3);
Tailwind
colors: {
  custom: {
    50: '#7f5887',
    500: '#4a1658',
    950: '#000000',
  },
}
SCSS
$custom: #4a1658;
$custom-light: #7f5887;
$custom-dark: #000000;
JSON
{
  "hex": "#4a1658",
  "rgb": {
    "r": 74,
    "g": 22,
    "b": 88
  },
  "hsl": {
    "h": 287.273,
    "s": 60,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31663,
    "c": 0.11992,
    "h": 318.3
  },
  "luminance": 0.02734
}

Semantic roles & 50–950 ramp

primary
#4A1658
secondary
#4D8F3B
accent
#E34566
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#0A040B
muted
#7C797C

Preview Lab

Preview with #4A1658

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

Preview Lab → · Contrast checker → · Palette generator →

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