#4A145E#4A145E

#4A145E is a dark, vivid purple. Relative luminance 0.028; OKLCH L 31.9% C 0.129 H 315.1°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#4A145E
RGBrgb(74, 20, 94)
HSLhsl(284, 65%, 22%)
HSVhsv(284, 79%, 37%)
CMYKcmyk(21.3%, 78.7%, 0%, 63.1%)
CIE-LABlab(19.07, 37.33, -32.26)
CIE-LCHlch(19.07, 49.34, 319.17°)
OKLaboklab(31.89% 0.0911 -0.0909)
OKLCHoklch(31.89% 0.129 315.1)
XYZxyz(5.0942, 2.7645, 10.8528)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A145E #285E14
analogous
#25145E #4A145E #5E144D
triadic
#4A145E #5E4A14 #145E4A
tetradic
#4A145E #5E2514 #285E14 #144D5E
square
#4A145E #5E2514 #285E14 #144D5E
split-complementary
#4A145E #4D5E14 #145E25
monochromatic
#140519 #22092C #4A145E #721F90 #9929C3

Accessibility & contrast

On white

13.52
#4A145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#4A145E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A145E
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A145E#FFFFFF#000000##FFFFFF
##4A145E1.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B60
Deuteranopia (green-blind)
#11305C
Tritanopia (blue-blind)
#482438
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a145e;
/* rgb */ color: rgb(74, 20, 94);
/* oklch */ color: oklch(31.9% 0.129 315.1);
Tailwind
colors: {
  custom: {
    50: '#80588c',
    500: '#4a145e',
    950: '#000000',
  },
}
SCSS
$custom: #4a145e;
$custom-light: #80588c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a145e",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 283.784,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.31894,
    "c": 0.12873,
    "h": 315.1
  },
  "luminance": 0.02764
}

Semantic roles & 50–950 ramp

primary
#4A145E
secondary
#519638
accent
#E8406D
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A145E

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

Preview Lab → · Contrast checker → · Palette generator →

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