#40104E#40104E

#40104E is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.7% C 0.113 H 317.4°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#40104E
RGBrgb(64, 16, 78)
HSLhsl(286, 66%, 18%)
HSVhsv(286, 79%, 31%)
CMYKcmyk(17.9%, 79.5%, 0%, 69.4%)
CIE-LABlab(15.54, 33.10, -27.24)
CIE-LCHlch(15.54, 42.87, 320.55°)
OKLaboklab(28.65% 0.0834 -0.0766)
OKLCHoklch(28.65% 0.113 317.4)
XYZxyz(3.6746, 2.0108, 7.4008)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40104E #1E4E10
analogous
#21104E #40104E #4E103D
triadic
#40104E #4E4010 #104E40
tetradic
#40104E #4E2110 #1E4E10 #103D4E
square
#40104E #4E2110 #1E4E10 #103D4E
split-complementary
#40104E #3D4E10 #104E21
monochromatic
#150519 #16061B #40104E #6A1A81 #9325B4

Accessibility & contrast

On white

14.98
#40104E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40104E
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40104E#FFFFFF#000000##FFFFFF
##40104E1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002450
Deuteranopia (green-blind)
#12284D
Tritanopia (blue-blind)
#3F1D2E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40104e;
/* rgb */ color: rgb(64, 16, 78);
/* oklch */ color: oklch(28.7% 0.113 317.4);
Tailwind
colors: {
  custom: {
    50: '#775480',
    500: '#40104e',
    950: '#000000',
  },
}
SCSS
$custom: #40104e;
$custom-light: #775480;
$custom-dark: #000000;
JSON
{
  "hex": "#40104e",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 78
  },
  "hsl": {
    "h": 286.452,
    "s": 65.957,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28653,
    "c": 0.11318,
    "h": 317.4
  },
  "luminance": 0.02011
}

Semantic roles & 50–950 ramp

primary
#40104E
secondary
#458832
accent
#E93F65
background
#F7F5F7
surface
#EDE8EE
border
#C8C4C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40104E

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

Preview Lab → · Contrast checker → · Palette generator →

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