#4A145C#4A145C

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

Color values

HEX#4A145C
RGBrgb(74, 20, 92)
HSLhsl(285, 64%, 22%)
HSVhsv(285, 78%, 36%)
CMYKcmyk(19.6%, 78.3%, 0%, 63.9%)
CIE-LABlab(18.92, 36.88, -31.17)
CIE-LCHlch(18.92, 48.29, 319.80°)
OKLaboklab(31.74% 0.0914 -0.0877)
OKLCHoklch(31.74% 0.127 316.2)
XYZxyz(5.0057, 2.7291, 10.3862)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A145C #265C14
analogous
#26145C #4A145C #5C144A
triadic
#4A145C #5C4A14 #145C4A
tetradic
#4A145C #5C2614 #265C14 #144A5C
square
#4A145C #5C2614 #265C14 #144A5C
split-complementary
#4A145C #4A5C14 #145C26
monochromatic
#140519 #22092A #4A145C #721F8E #9B2AC1

Accessibility & contrast

On white

13.59
#4A145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A145C
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A145C#FFFFFF#000000##FFFFFF
##4A145C1.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B5E
Deuteranopia (green-blind)
#142F5A
Tritanopia (blue-blind)
#492337
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #4a145c;
/* rgb */ color: rgb(74, 20, 92);
/* oklch */ color: oklch(31.7% 0.127 316.2);
Tailwind
colors: {
  custom: {
    50: '#7f588b',
    500: '#4a145c',
    950: '#000000',
  },
}
SCSS
$custom: #4a145c;
$custom-light: #7f588b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a145c",
  "rgb": {
    "r": 74,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 285,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.31739,
    "c": 0.1267,
    "h": 316.2
  },
  "luminance": 0.02729
}

Semantic roles & 50–950 ramp

primary
#4A145C
secondary
#4F9438
accent
#E7416A
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A145C

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

Preview Lab → · Contrast checker → · Palette generator →

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