#4A135A#4A135A

#4A135A is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.5% C 0.126 H 317.4°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#4A135A
RGBrgb(74, 19, 90)
HSLhsl(286, 65%, 21%)
HSVhsv(286, 79%, 35%)
CMYKcmyk(17.8%, 78.9%, 0%, 64.7%)
CIE-LABlab(18.63, 36.86, -30.31)
CIE-LCHlch(18.63, 47.72, 320.57°)
OKLaboklab(31.48% 0.0927 -0.0852)
OKLCHoklch(31.48% 0.126 317.4)
XYZxyz(4.9021, 2.6600, 9.9261)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A135A #235A13
analogous
#27135A #4A135A #5A1347
triadic
#4A135A #5A4A13 #135A4A
tetradic
#4A135A #5A2713 #235A13 #13475A
square
#4A135A #5A2713 #235A13 #13475A
split-complementary
#4A135A #475A13 #135A27
monochromatic
#150519 #200827 #4A135A #741E8D #9D28BF

Accessibility & contrast

On white

13.71
#4A135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4A135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A135A
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A135A#FFFFFF#000000##FFFFFF
##4A135A1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5C
Deuteranopia (green-blind)
#152F58
Tritanopia (blue-blind)
#492235
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a135a;
/* rgb */ color: rgb(74, 19, 90);
/* oklch */ color: oklch(31.5% 0.126 317.4);
Tailwind
colors: {
  custom: {
    50: '#7f5789',
    500: '#4a135a',
    950: '#000000',
  },
}
SCSS
$custom: #4a135a;
$custom-light: #7f5789;
$custom-dark: #000000;
JSON
{
  "hex": "#4a135a",
  "rgb": {
    "r": 74,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 286.479,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31481,
    "c": 0.12594,
    "h": 317.4
  },
  "luminance": 0.0266
}

Semantic roles & 50–950 ramp

primary
#4A135A
secondary
#4B9237
accent
#E84066
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A135A

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

Preview Lab → · Contrast checker → · Palette generator →

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