#40116A#40116A

#40116A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.142 H 302.5°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#40116A
RGBrgb(64, 17, 106)
HSLhsl(272, 72%, 24%)
HSVhsv(272, 84%, 42%)
CMYKcmyk(39.6%, 84%, 0%, 58.4%)
CIE-LABlab(18.06, 39.48, -41.89)
CIE-LCHlch(18.06, 57.56, 313.30°)
OKLaboklab(31.17% 0.0761 -0.1196)
OKLCHoklch(31.17% 0.142 302.5)
XYZxyz(4.9157, 2.5315, 13.8625)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40116A #3B6A11
analogous
#13116A #40116A #6A1168
triadic
#40116A #6A4011 #116A40
tetradic
#40116A #6A1311 #3B6A11 #11686A
square
#40116A #6A1311 #3B6A11 #11686A
split-complementary
#40116A #686A11 #116A13
monochromatic
#10041A #200935 #40116A #60199F #8022D3

Accessibility & contrast

On white

13.94
#40116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40116A
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40116A#FFFFFF#000000##FFFFFF
##40116A1.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#37293E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #40116a;
/* rgb */ color: rgb(64, 17, 106);
/* oklch */ color: oklch(31.2% 0.142 302.5);
Tailwind
colors: {
  custom: {
    50: '#7a5695',
    500: '#40116a',
    950: '#000000',
  },
}
SCSS
$custom: #40116a;
$custom-light: #7a5695;
$custom-dark: #000000;
JSON
{
  "hex": "#40116a",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 271.685,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31166,
    "c": 0.14174,
    "h": 302.5
  },
  "luminance": 0.02531
}

Semantic roles & 50–950 ramp

primary
#40116A
secondary
#68A235
accent
#EF398F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #40116A

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

Preview Lab → · Contrast checker → · Palette generator →

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