#40144C#40144C

#40144C is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.0% C 0.105 H 318.3°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#40144C
RGBrgb(64, 20, 76)
HSLhsl(287, 58%, 19%)
HSVhsv(287, 74%, 30%)
CMYKcmyk(15.8%, 73.7%, 0%, 70.2%)
CIE-LABlab(16.07, 30.76, -25.03)
CIE-LCHlch(16.07, 39.66, 320.87°)
OKLaboklab(28.98% 0.0786 -0.0701)
OKLCHoklch(28.98% 0.105 318.3)
XYZxyz(3.6688, 2.1123, 7.0505)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40144C #204C14
analogous
#24144C #40144C #4C143C
triadic
#40144C #4C4014 #144C40
tetradic
#40144C #4C2414 #204C14 #143C4C
square
#40144C #4C2414 #204C14 #143C4C
split-complementary
#40144C #3C4C14 #144C24
monochromatic
#140618 #17071C #40144C #69217C #922EAD

Accessibility & contrast

On white

14.76
#40144C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#40144C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40144C
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40144C#FFFFFF#000000##FFFFFF
##40144C1.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01254E
Deuteranopia (green-blind)
#17294B
Tritanopia (blue-blind)
#401E2E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40144c;
/* rgb */ color: rgb(64, 20, 76);
/* oklch */ color: oklch(29.0% 0.105 318.3);
Tailwind
colors: {
  custom: {
    50: '#77567e',
    500: '#40144c',
    950: '#000000',
  },
}
SCSS
$custom: #40144c;
$custom-light: #77567e;
$custom-dark: #000000;
JSON
{
  "hex": "#40144c",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 76
  },
  "hsl": {
    "h": 287.143,
    "s": 58.333,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2898,
    "c": 0.10535,
    "h": 318.3
  },
  "luminance": 0.02112
}

Semantic roles & 50–950 ramp

primary
#40144C
secondary
#488438
accent
#E24668
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40144C

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

Preview Lab → · Contrast checker → · Palette generator →

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