#40104C#40104C

#40104C is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.5% C 0.111 H 318.8°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#40104C
RGBrgb(64, 16, 76)
HSLhsl(288, 65%, 18%)
HSVhsv(288, 79%, 30%)
CMYKcmyk(15.8%, 78.9%, 0%, 70.2%)
CIE-LABlab(15.40, 32.65, -26.10)
CIE-LCHlch(15.40, 41.80, 321.36°)
OKLaboklab(28.5% 0.0836 -0.0732)
OKLCHoklch(28.5% 0.111 318.8)
XYZxyz(3.6040, 1.9825, 7.0289)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40104C #1C4C10
analogous
#22104C #40104C #4C103A
triadic
#40104C #4C4010 #104C40
tetradic
#40104C #4C2210 #1C4C10 #103A4C
square
#40104C #4C2210 #1C4C10 #103A4C
split-complementary
#40104C #3A4C10 #104C22
monochromatic
#150519 #150519 #40104C #6B1B7F #9525B1

Accessibility & contrast

On white

15.04
#40104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#40104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40104C
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40104C#FFFFFF#000000##FFFFFF
##40104C1.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234E
Deuteranopia (green-blind)
#14284B
Tritanopia (blue-blind)
#401C2D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #40104c;
/* rgb */ color: rgb(64, 16, 76);
/* oklch */ color: oklch(28.5% 0.111 318.8);
Tailwind
colors: {
  custom: {
    50: '#77547e',
    500: '#40104c',
    950: '#000000',
  },
}
SCSS
$custom: #40104c;
$custom-light: #77547e;
$custom-dark: #000000;
JSON
{
  "hex": "#40104c",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 288,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.285,
    "c": 0.11112,
    "h": 318.8
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#40104C
secondary
#438632
accent
#E84061
background
#F7F4F7
surface
#EDE8EE
border
#C8C4C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40104C

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

Preview Lab → · Contrast checker → · Palette generator →

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