#40144E#40144E

#40144E is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.1% C 0.108 H 316.9°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#40144E
RGBrgb(64, 20, 78)
HSLhsl(286, 59%, 19%)
HSVhsv(286, 74%, 31%)
CMYKcmyk(17.9%, 74.4%, 0%, 69.4%)
CIE-LABlab(16.21, 31.23, -26.17)
CIE-LCHlch(16.21, 40.74, 320.04°)
OKLaboklab(29.13% 0.0785 -0.0735)
OKLCHoklch(29.13% 0.108 316.9)
XYZxyz(3.7395, 2.1405, 7.4224)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40144E #224E14
analogous
#23144E #40144E #4E143F
triadic
#40144E #4E4014 #144E40
tetradic
#40144E #4E2314 #224E14 #143F4E
square
#40144E #4E2314 #224E14 #143F4E
split-complementary
#40144E #3F4E14 #144E23
monochromatic
#140618 #18081D #40144E #68207F #902DAF

Accessibility & contrast

On white

14.71
#40144E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#40144E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40144E
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40144E#FFFFFF#000000##FFFFFF
##40144E1.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#152A4D
Tritanopia (blue-blind)
#3F1F2F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40144e;
/* rgb */ color: rgb(64, 20, 78);
/* oklch */ color: oklch(29.1% 0.108 316.9);
Tailwind
colors: {
  custom: {
    50: '#775680',
    500: '#40144e',
    950: '#000000',
  },
}
SCSS
$custom: #40144e;
$custom-light: #775680;
$custom-dark: #000000;
JSON
{
  "hex": "#40144e",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 78
  },
  "hsl": {
    "h": 285.517,
    "s": 59.184,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29128,
    "c": 0.10753,
    "h": 316.9
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#40144E
secondary
#4B8638
accent
#E2456B
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40144E

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

Preview Lab → · Contrast checker → · Palette generator →

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