#4A105E#4A105E

#4A105E is a dark, vivid purple. Relative luminance 0.026; OKLCH L 31.5% C 0.133 H 315.5°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#4A105E
RGBrgb(74, 16, 94)
HSLhsl(285, 71%, 22%)
HSVhsv(285, 83%, 37%)
CMYKcmyk(21.3%, 83%, 0%, 63.1%)
CIE-LABlab(18.52, 38.93, -33.16)
CIE-LCHlch(18.52, 51.14, 319.58°)
OKLaboklab(31.5% 0.0951 -0.0935)
OKLCHoklch(31.5% 0.133 315.5)
XYZxyz(5.0294, 2.6348, 10.8311)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#4A105E #245E10
analogous
#23105E #4A105E #5E104B
triadic
#4A105E #5E4A10 #105E4A
tetradic
#4A105E #5E2310 #245E10 #104B5E
square
#4A105E #5E2310 #245E10 #104B5E
split-complementary
#4A105E #4B5E10 #105E23
monochromatic
#15041A #21072A #4A105E #731992 #9C22C7

Accessibility & contrast

On white

13.75
#4A105E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #4A105E
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##4A105E#FFFFFF#000000##FFFFFF
##4A105E1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A60
Deuteranopia (green-blind)
#0D2F5C
Tritanopia (blue-blind)
#482237
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #4a105e;
/* rgb */ color: rgb(74, 16, 94);
/* oklch */ color: oklch(31.5% 0.133 315.5);
Tailwind
colors: {
  custom: {
    50: '#80568c',
    500: '#4a105e',
    950: '#000000',
  },
}
SCSS
$custom: #4a105e;
$custom-light: #80568c;
$custom-dark: #000000;
JSON
{
  "hex": "#4a105e",
  "rgb": {
    "r": 74,
    "g": 16,
    "b": 94
  },
  "hsl": {
    "h": 284.615,
    "s": 70.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.315,
    "c": 0.13343,
    "h": 315.5
  },
  "luminance": 0.02635
}

Semantic roles & 50–950 ramp

primary
#4A105E
secondary
#4D9733
accent
#EE3A68
background
#F8F5F8
surface
#EFE9F0
border
#CAC5CB
text
#0A030C
muted
#7C787D

Preview Lab

Preview with #4A105E

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

Preview Lab → · Contrast checker → · Palette generator →

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