#40116F#40116F

#40116F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.147 H 300.4°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#40116F
RGBrgb(64, 17, 111)
HSLhsl(270, 73%, 25%)
HSVhsv(270, 85%, 44%)
CMYKcmyk(42.3%, 84.7%, 0%, 56.5%)
CIE-LABlab(18.53, 40.76, -44.37)
CIE-LCHlch(18.53, 60.25, 312.57°)
OKLaboklab(31.64% 0.0744 -0.1269)
OKLCHoklch(31.64% 0.147 300.4)
XYZxyz(5.1833, 2.6385, 15.2720)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40116F #406F11
analogous
#11116F #40116F #6F116F
triadic
#40116F #6F4011 #116F40
tetradic
#40116F #6F1111 #406F11 #116F6F
square
#40116F #6F1111 #406F11 #116F6F
split-complementary
#40116F #6F6F11 #116F11
monochromatic
#0F041B #21093A #40116F #5F19A4 #7D21D9

Accessibility & contrast

On white

13.75
#40116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#40116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40116F
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40116F#FFFFFF#000000##FFFFFF
##40116F1.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D72
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#352B41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40116f;
/* rgb */ color: rgb(64, 17, 111);
/* oklch */ color: oklch(31.6% 0.147 300.4);
Tailwind
colors: {
  custom: {
    50: '#7a5699',
    500: '#40116f',
    950: '#000000',
  },
}
SCSS
$custom: #40116f;
$custom-light: #7a5699;
$custom-dark: #000000;
JSON
{
  "hex": "#40116f",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 270,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.31641,
    "c": 0.14711,
    "h": 300.4
  },
  "luminance": 0.02639
}

Semantic roles & 50–950 ramp

primary
#40116F
secondary
#6EA635
accent
#F03894
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #40116F

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

Preview Lab → · Contrast checker → · Palette generator →

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