#4A145A#4A145A

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

Color values

HEX#4A145A
RGBrgb(74, 20, 90)
HSLhsl(286, 64%, 22%)
HSVhsv(286, 78%, 35%)
CMYKcmyk(17.8%, 77.8%, 0%, 64.7%)
CIE-LABlab(18.78, 36.44, -30.07)
CIE-LCHlch(18.78, 47.24, 320.47°)
OKLaboklab(31.59% 0.0916 -0.0845)
OKLCHoklch(31.59% 0.125 317.3)
XYZxyz(4.9194, 2.6946, 9.9318)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A145A #245A14
analogous
#27145A #4A145A #5A1447
triadic
#4A145A #5A4A14 #145A4A
tetradic
#4A145A #5A2714 #245A14 #14475A
square
#4A145A #5A2714 #245A14 #14475A
split-complementary
#4A145A #475A14 #145A27
monochromatic
#150619 #210928 #4A145A #731F8C #9C2ABE

Accessibility & contrast

On white

13.65
#4A145A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A145A
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A145A#FFFFFF#000000##FFFFFF
##4A145A1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #4a145a;
/* rgb */ color: rgb(74, 20, 90);
/* oklch */ color: oklch(31.6% 0.125 317.3);
Tailwind
colors: {
  custom: {
    50: '#7f5889',
    500: '#4a145a',
    950: '#000000',
  },
}
SCSS
$custom: #4a145a;
$custom-light: #7f5889;
$custom-dark: #000000;
JSON
{
  "hex": "#4a145a",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 90
  },
  "hsl": {
    "h": 286.286,
    "s": 63.636,
    "l": 21.569
  },
  "oklch": {
    "l": 0.31587,
    "c": 0.12466,
    "h": 317.3
  },
  "luminance": 0.02694
}

Semantic roles & 50–950 ramp

primary
#4A145A
secondary
#4D9238
accent
#E74167
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A145A

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

Preview Lab → · Contrast checker → · Palette generator →

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