#4A115A#4A115A

#4A115A is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.3% C 0.128 H 317.6°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#4A115A
RGBrgb(74, 17, 90)
HSLhsl(287, 68%, 21%)
HSVhsv(287, 81%, 35%)
CMYKcmyk(17.8%, 81.1%, 0%, 64.7%)
CIE-LABlab(18.34, 37.67, -30.77)
CIE-LCHlch(18.34, 48.64, 320.76°)
OKLaboklab(31.28% 0.0948 -0.0865)
OKLCHoklch(31.28% 0.128 317.6)
XYZxyz(4.8697, 2.5951, 9.9153)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A115A #215A11
analogous
#25115A #4A115A #5A1145
triadic
#4A115A #5A4A11 #115A4A
tetradic
#4A115A #5A2511 #215A11 #11455A
square
#4A115A #5A2511 #215A11 #11455A
split-complementary
#4A115A #455A11 #115A25
monochromatic
#15051A #200727 #4A115A #741B8D #9F24C1

Accessibility & contrast

On white

13.82
#4A115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#4A115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #4A115A
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A115A#FFFFFF#000000##FFFFFF
##4A115A1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00295C
Deuteranopia (green-blind)
#132E58
Tritanopia (blue-blind)
#492135
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a115a;
/* rgb */ color: rgb(74, 17, 90);
/* oklch */ color: oklch(31.3% 0.128 317.6);
Tailwind
colors: {
  custom: {
    50: '#7f5689',
    500: '#4a115a',
    950: '#000000',
  },
}
SCSS
$custom: #4a115a;
$custom-light: #7f5689;
$custom-dark: #000000;
JSON
{
  "hex": "#4a115a",
  "rgb": {
    "r": 74,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 286.849,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.31279,
    "c": 0.12838,
    "h": 317.6
  },
  "luminance": 0.02595
}

Semantic roles & 50–950 ramp

primary
#4A115A
secondary
#499334
accent
#EB3D63
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030B
muted
#7C787C

Preview Lab

Preview with #4A115A

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

Preview Lab → · Contrast checker → · Palette generator →

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