#4A145F#4A145F

#4A145F is a dark, vivid purple. Relative luminance 0.028; OKLCH L 32.0% C 0.130 H 314.5°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#4A145F
RGBrgb(74, 20, 95)
HSLhsl(283, 65%, 23%)
HSVhsv(283, 79%, 37%)
CMYKcmyk(22.1%, 78.9%, 0%, 62.7%)
CIE-LABlab(19.15, 37.56, -32.80)
CIE-LCHlch(19.15, 49.86, 318.87°)
OKLaboklab(31.97% 0.091 -0.0925)
OKLCHoklch(31.97% 0.13 314.5)
XYZxyz(5.1394, 2.7826, 11.0906)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A145F #295F14
analogous
#25145F #4A145F #5F144E
triadic
#4A145F #5F4A14 #145F4A
tetradic
#4A145F #5F2514 #295F14 #144E5F
square
#4A145F #5F2514 #295F14 #144E5F
split-complementary
#4A145F #4E5F14 #145F25
monochromatic
#140519 #23092C #4A145F #711F92 #9929C4

Accessibility & contrast

On white

13.49
#4A145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#4A145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A145F
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A145F#FFFFFF#000000##FFFFFF
##4A145F1.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C61
Deuteranopia (green-blind)
#10305D
Tritanopia (blue-blind)
#482438
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a145f;
/* rgb */ color: rgb(74, 20, 95);
/* oklch */ color: oklch(32.0% 0.130 314.5);
Tailwind
colors: {
  custom: {
    50: '#80588d',
    500: '#4a145f',
    950: '#000000',
  },
}
SCSS
$custom: #4a145f;
$custom-light: #80588d;
$custom-dark: #000000;
JSON
{
  "hex": "#4a145f",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 283.2,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.31972,
    "c": 0.12976,
    "h": 314.5
  },
  "luminance": 0.02782
}

Semantic roles & 50–950 ramp

primary
#4A145F
secondary
#539738
accent
#E8406F
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A145F

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

Preview Lab → · Contrast checker → · Palette generator →

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