#4A115C#4A115C

#4A115C is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.4% C 0.130 H 316.5°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#4A115C
RGBrgb(74, 17, 92)
HSLhsl(286, 69%, 21%)
HSVhsv(286, 82%, 36%)
CMYKcmyk(19.6%, 81.5%, 0%, 63.9%)
CIE-LABlab(18.50, 38.11, -31.86)
CIE-LCHlch(18.50, 49.67, 320.10°)
OKLaboklab(31.44% 0.0945 -0.0897)
OKLCHoklch(31.44% 0.13 316.5)
XYZxyz(4.9560, 2.6297, 10.3697)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A115C #235C11
analogous
#25115C #4A115C #5C1149
triadic
#4A115C #5C4A11 #115C4A
tetradic
#4A115C #5C2511 #235C11 #11495C
square
#4A115C #5C2511 #235C11 #11495C
split-complementary
#4A115C #495C11 #115C25
monochromatic
#15051A #200728 #4A115C #741B90 #9D24C3

Accessibility & contrast

On white

13.76
#4A115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#4A115C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A115C
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A115C#FFFFFF#000000##FFFFFF
##4A115C1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5E
Deuteranopia (green-blind)
#112F5A
Tritanopia (blue-blind)
#492236
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a115c;
/* rgb */ color: rgb(74, 17, 92);
/* oklch */ color: oklch(31.4% 0.130 316.5);
Tailwind
colors: {
  custom: {
    50: '#80568b',
    500: '#4a115c',
    950: '#000000',
  },
}
SCSS
$custom: #4a115c;
$custom-light: #80568b;
$custom-dark: #000000;
JSON
{
  "hex": "#4a115c",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 285.6,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.31435,
    "c": 0.13034,
    "h": 316.5
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#4A115C
secondary
#4B9534
accent
#EC3C66
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A115C

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

Preview Lab → · Contrast checker → · Palette generator →

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