#40114E#40114E

#40114E is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.8% C 0.112 H 317.3°. Best body text is #FFFFFF at 14.91:1 contrast (WCAG AA passes).

Color values

HEX#40114E
RGBrgb(64, 17, 78)
HSLhsl(286, 64%, 19%)
HSVhsv(286, 78%, 31%)
CMYKcmyk(17.9%, 78.2%, 0%, 69.4%)
CIE-LABlab(15.70, 32.65, -26.98)
CIE-LCHlch(15.70, 42.36, 320.43°)
OKLaboklab(28.77% 0.0822 -0.0758)
OKLCHoklch(28.77% 0.112 317.3)
XYZxyz(3.6897, 2.0411, 7.4059)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40114E #1F4E11
analogous
#21114E #40114E #4E113D
triadic
#40114E #4E4011 #114E40
tetradic
#40114E #4E2111 #1F4E11 #113D4E
square
#40114E #4E2111 #1F4E11 #113D4E
split-complementary
#40114E #3D4E11 #114E21
monochromatic
#150519 #17061C #40114E #691C80 #9227B2

Accessibility & contrast

On white

14.91
#40114E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40114E
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40114E#FFFFFF#000000##FFFFFF
##40114E1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40114e;
/* rgb */ color: rgb(64, 17, 78);
/* oklch */ color: oklch(28.8% 0.112 317.3);
Tailwind
colors: {
  custom: {
    50: '#775480',
    500: '#40114e',
    950: '#000000',
  },
}
SCSS
$custom: #40114e;
$custom-light: #775480;
$custom-dark: #000000;
JSON
{
  "hex": "#40114e",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 78
  },
  "hsl": {
    "h": 286.23,
    "s": 64.211,
    "l": 18.627
  },
  "oklch": {
    "l": 0.28765,
    "c": 0.11184,
    "h": 317.3
  },
  "luminance": 0.02041
}

Semantic roles & 50–950 ramp

primary
#40114E
secondary
#478733
accent
#E74167
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #40114E

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

Preview Lab → · Contrast checker → · Palette generator →

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