#40116C#40116C

#40116C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.144 H 301.6°. Best body text is #FFFFFF at 13.86:1 contrast (WCAG AA passes).

Color values

HEX#40116C
RGBrgb(64, 17, 108)
HSLhsl(271, 73%, 25%)
HSVhsv(271, 84%, 42%)
CMYKcmyk(40.7%, 84.3%, 0%, 57.6%)
CIE-LABlab(18.25, 39.99, -42.89)
CIE-LCHlch(18.25, 58.64, 312.99°)
OKLaboklab(31.36% 0.0754 -0.1225)
OKLCHoklch(31.36% 0.144 301.6)
XYZxyz(5.0209, 2.5736, 14.4167)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40116C #3D6C11
analogous
#13116C #40116C #6C116B
triadic
#40116C #6C4011 #116C40
tetradic
#40116C #6C1311 #3D6C11 #116B6C
square
#40116C #6C1311 #3D6C11 #116B6C
split-complementary
#40116C #6B6C11 #116C13
monochromatic
#10041A #210937 #40116C #5F19A1 #7F22D6

Accessibility & contrast

On white

13.86
#40116C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#40116C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40116C
13.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40116C#FFFFFF#000000##FFFFFF
##40116C1.0013.861.5113.86
#FFFFFF13.861.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#362A3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40116c;
/* rgb */ color: rgb(64, 17, 108);
/* oklch */ color: oklch(31.4% 0.144 301.6);
Tailwind
colors: {
  custom: {
    50: '#7a5697',
    500: '#40116c',
    950: '#000000',
  },
}
SCSS
$custom: #40116c;
$custom-light: #7a5697;
$custom-dark: #000000;
JSON
{
  "hex": "#40116c",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 108
  },
  "hsl": {
    "h": 270.989,
    "s": 72.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31355,
    "c": 0.14389,
    "h": 301.6
  },
  "luminance": 0.02574
}

Semantic roles & 50–950 ramp

primary
#40116C
secondary
#6BA435
accent
#EF3891
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #40116C

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

Preview Lab → · Contrast checker → · Palette generator →

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