#4A145D#4A145D

#4A145D is a dark, vivid purple. Relative luminance 0.027; OKLCH L 31.8% C 0.128 H 315.6°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#4A145D
RGBrgb(74, 20, 93)
HSLhsl(284, 65%, 22%)
HSVhsv(284, 78%, 36%)
CMYKcmyk(20.4%, 78.5%, 0%, 63.5%)
CIE-LABlab(19.00, 37.11, -31.71)
CIE-LCHlch(19.00, 48.81, 319.48°)
OKLaboklab(31.82% 0.0913 -0.0893)
OKLCHoklch(31.82% 0.128 315.6)
XYZxyz(5.0497, 2.7467, 10.6180)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A145D #275D14
analogous
#26145D #4A145D #5D144C
triadic
#4A145D #5D4A14 #145D4A
tetradic
#4A145D #5D2614 #275D14 #144C5D
square
#4A145D #5D2614 #275D14 #144C5D
split-complementary
#4A145D #4C5D14 #145D26
monochromatic
#140519 #22092B #4A145D #721F8F #9A2AC2

Accessibility & contrast

On white

13.56
#4A145D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A145D
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A145D#FFFFFF#000000##FFFFFF
##4A145D1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5F
Deuteranopia (green-blind)
#12305B
Tritanopia (blue-blind)
#492437
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a145d;
/* rgb */ color: rgb(74, 20, 93);
/* oklch */ color: oklch(31.8% 0.128 315.6);
Tailwind
colors: {
  custom: {
    50: '#7f588b',
    500: '#4a145d',
    950: '#000000',
  },
}
SCSS
$custom: #4a145d;
$custom-light: #7f588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a145d",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 93
  },
  "hsl": {
    "h": 284.384,
    "s": 64.602,
    "l": 22.157
  },
  "oklch": {
    "l": 0.31816,
    "c": 0.12771,
    "h": 315.6
  },
  "luminance": 0.02746
}

Semantic roles & 50–950 ramp

primary
#4A145D
secondary
#509538
accent
#E8406C
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A145D

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

Preview Lab → · Contrast checker → · Palette generator →

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