#40114D#40114D

#40114D is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.7% C 0.111 H 318.0°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#40114D
RGBrgb(64, 17, 77)
HSLhsl(287, 64%, 18%)
HSVhsv(287, 78%, 30%)
CMYKcmyk(16.9%, 77.9%, 0%, 69.8%)
CIE-LABlab(15.63, 32.43, -26.41)
CIE-LCHlch(15.63, 41.82, 320.83°)
OKLaboklab(28.69% 0.0823 -0.0742)
OKLCHoklch(28.69% 0.111 318)
XYZxyz(3.6542, 2.0269, 7.2185)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40114D #1E4D11
analogous
#22114D #40114D #4D113C
triadic
#40114D #4D4011 #114D40
tetradic
#40114D #4D2211 #1E4D11 #113C4D
square
#40114D #4D2211 #1E4D11 #113C4D
split-complementary
#40114D #3C4D11 #114D22
monochromatic
#150619 #16061B #40114D #6A1C7F #9327B1

Accessibility & contrast

On white

14.94
#40114D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#40114D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40114D
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40114D#FFFFFF#000000##FFFFFF
##40114D1.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244F
Deuteranopia (green-blind)
#13284C
Tritanopia (blue-blind)
#401D2D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #40114d;
/* rgb */ color: rgb(64, 17, 77);
/* oklch */ color: oklch(28.7% 0.111 318.0);
Tailwind
colors: {
  custom: {
    50: '#77547f',
    500: '#40114d',
    950: '#000000',
  },
}
SCSS
$custom: #40114d;
$custom-light: #77547f;
$custom-dark: #000000;
JSON
{
  "hex": "#40114d",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 77
  },
  "hsl": {
    "h": 287,
    "s": 63.83,
    "l": 18.431
  },
  "oklch": {
    "l": 0.28689,
    "c": 0.11079,
    "h": 318
  },
  "luminance": 0.02027
}

Semantic roles & 50–950 ramp

primary
#40114D
secondary
#458633
accent
#E74165
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40114D

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

Preview Lab → · Contrast checker → · Palette generator →

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