#40114A#40114A

#40114A is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.5% C 0.108 H 320.0°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#40114A
RGBrgb(64, 17, 74)
HSLhsl(289, 63%, 18%)
HSVhsv(289, 77%, 29%)
CMYKcmyk(13.5%, 77%, 0%, 71%)
CIE-LABlab(15.41, 31.75, -24.70)
CIE-LCHlch(15.41, 40.23, 322.12°)
OKLaboklab(28.47% 0.0825 -0.0691)
OKLCHoklch(28.47% 0.108 320)
XYZxyz(3.5507, 1.9855, 6.6734)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40114A #1B4A11
analogous
#24114A #40114A #4A1137
triadic
#40114A #4A4011 #114A40
tetradic
#40114A #4A2411 #1B4A11 #11374A
square
#40114A #4A2411 #1B4A11 #11374A
split-complementary
#40114A #374A11 #114A24
monochromatic
#160619 #160619 #40114A #6B1C7C #9628AE

Accessibility & contrast

On white

15.03
#40114A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#40114A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40114A
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40114A#FFFFFF#000000##FFFFFF
##40114A1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00234C
Deuteranopia (green-blind)
#162849
Tritanopia (blue-blind)
#401C2C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40114a;
/* rgb */ color: rgb(64, 17, 74);
/* oklch */ color: oklch(28.5% 0.108 320.0);
Tailwind
colors: {
  custom: {
    50: '#77547d',
    500: '#40114a',
    950: '#000000',
  },
}
SCSS
$custom: #40114a;
$custom-light: #77547d;
$custom-dark: #000000;
JSON
{
  "hex": "#40114a",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 74
  },
  "hsl": {
    "h": 289.474,
    "s": 62.637,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28465,
    "c": 0.10766,
    "h": 320
  },
  "luminance": 0.01985
}

Semantic roles & 50–950 ramp

primary
#40114A
secondary
#418333
accent
#E6425F
background
#F7F5F7
surface
#EDE8EE
border
#C8C4C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #40114A

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

Preview Lab → · Contrast checker → · Palette generator →

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