#40104A#40104A

#40104A is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.3% C 0.109 H 320.2°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#40104A
RGBrgb(64, 16, 74)
HSLhsl(290, 64%, 18%)
HSVhsv(290, 78%, 29%)
CMYKcmyk(13.5%, 78.4%, 0%, 71%)
CIE-LABlab(15.25, 32.21, -24.95)
CIE-LCHlch(15.25, 40.74, 322.23°)
OKLaboklab(28.35% 0.0837 -0.0699)
OKLCHoklch(28.35% 0.109 320.2)
XYZxyz(3.5355, 1.9552, 6.6684)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40104A #1A4A10
analogous
#23104A #40104A #4A1037
triadic
#40104A #4A4010 #104A40
tetradic
#40104A #4A2310 #1A4A10 #10374A
square
#40104A #4A2310 #1A4A10 #10374A
split-complementary
#40104A #374A10 #104A23
monochromatic
#160519 #160519 #40104A #6C1B7C #9726AF

Accessibility & contrast

On white

15.10
#40104A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#40104A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40104A
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40104A#FFFFFF#000000##FFFFFF
##40104A1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#152849
Tritanopia (blue-blind)
#401B2B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40104a;
/* rgb */ color: rgb(64, 16, 74);
/* oklch */ color: oklch(28.3% 0.109 320.2);
Tailwind
colors: {
  custom: {
    50: '#77537d',
    500: '#40104a',
    950: '#000000',
  },
}
SCSS
$custom: #40104a;
$custom-light: #77537d;
$custom-dark: #000000;
JSON
{
  "hex": "#40104a",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 74
  },
  "hsl": {
    "h": 289.655,
    "s": 64.444,
    "l": 17.647
  },
  "oklch": {
    "l": 0.2835,
    "c": 0.10906,
    "h": 320.2
  },
  "luminance": 0.01955
}

Semantic roles & 50–950 ramp

primary
#40104A
secondary
#408432
accent
#E7405D
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #40104A

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

Preview Lab → · Contrast checker → · Palette generator →

#40104A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva