#4A154A#4A154A

#4A154A is a dark, moderate purple. Relative luminance 0.025; OKLCH L 30.6% C 0.107 H 327.8°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#4A154A
RGBrgb(74, 21, 74)
HSLhsl(300, 56%, 19%)
HSVhsv(300, 72%, 29%)
CMYKcmyk(0%, 71.6%, 0%, 71%)
CIE-LABlab(17.86, 32.60, -20.70)
CIE-LCHlch(17.86, 38.62, 327.59°)
OKLaboklab(30.58% 0.0909 -0.0572)
OKLCHoklch(30.58% 0.107 327.8)
XYZxyz(4.3282, 2.4869, 6.7293)
Luminance0.0249 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A154A #154A15
analogous
#2F154A #4A154A #4A152F
triadic
#4A154A #4A4A15 #154A4A
tetradic
#4A154A #4A2F15 #154A15 #152F4A
square
#4A154A #4A2F15 #154A15 #152F4A
split-complementary
#4A154A #2F4A15 #154A2F
monochromatic
#180718 #1A071A #4A154A #7A237A #A930A9

Accessibility & contrast

On white

14.02
#4A154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#4A154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A154A
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A154A#FFFFFF#000000##FFFFFF
##4A154A1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E274C
Deuteranopia (green-blind)
#222E49
Tritanopia (blue-blind)
#4C1C2D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #4a154a;
/* rgb */ color: rgb(74, 21, 74);
/* oklch */ color: oklch(30.6% 0.107 327.8);
Tailwind
colors: {
  custom: {
    50: '#7f577d',
    500: '#4a154a',
    950: '#000000',
  },
}
SCSS
$custom: #4a154a;
$custom-light: #7f577d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a154a",
  "rgb": {
    "r": 74,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 300,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.30583,
    "c": 0.10737,
    "h": 327.8
  },
  "luminance": 0.02487
}

Semantic roles & 50–950 ramp

primary
#4A154A
secondary
#398239
accent
#DF4949
background
#F7F5F7
surface
#EEE9EE
border
#C9C5C9
text
#0A0309
muted
#7C787B

Preview Lab

Preview with #4A154A

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

Preview Lab → · Contrast checker → · Palette generator →

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