#4A135B#4A135B

#4A135B is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.6% C 0.127 H 316.8°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#4A135B
RGBrgb(74, 19, 91)
HSLhsl(286, 65%, 22%)
HSVhsv(286, 79%, 36%)
CMYKcmyk(18.7%, 79.1%, 0%, 64.3%)
CIE-LABlab(18.70, 37.08, -30.86)
CIE-LCHlch(18.70, 48.24, 320.23°)
OKLaboklab(31.56% 0.0926 -0.0868)
OKLCHoklch(31.56% 0.127 316.8)
XYZxyz(4.9450, 2.6771, 10.1518)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A135B #245B13
analogous
#26135B #4A135B #5B1348
triadic
#4A135B #5B4A13 #135B4A
tetradic
#4A135B #5B2613 #245B13 #13485B
square
#4A135B #5B2613 #245B13 #13485B
split-complementary
#4A135B #485B13 #135B26
monochromatic
#150519 #210828 #4A135B #731E8E #9C28C0

Accessibility & contrast

On white

13.68
#4A135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#4A135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A135B
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A135B#FFFFFF#000000##FFFFFF
##4A135B1.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#142F59
Tritanopia (blue-blind)
#492236
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a135b;
/* rgb */ color: rgb(74, 19, 91);
/* oklch */ color: oklch(31.6% 0.127 316.8);
Tailwind
colors: {
  custom: {
    50: '#7f578a',
    500: '#4a135b',
    950: '#000000',
  },
}
SCSS
$custom: #4a135b;
$custom-light: #7f578a;
$custom-dark: #000000;
JSON
{
  "hex": "#4a135b",
  "rgb": {
    "r": 74,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 285.833,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31557,
    "c": 0.12695,
    "h": 316.8
  },
  "luminance": 0.02677
}

Semantic roles & 50–950 ramp

primary
#4A135B
secondary
#4D9337
accent
#E83F67
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A135B

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

Preview Lab → · Contrast checker → · Palette generator →

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