#40146F#40146F

#40146F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.144 H 299.9°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#40146F
RGBrgb(64, 20, 111)
HSLhsl(269, 69%, 26%)
HSVhsv(269, 82%, 44%)
CMYKcmyk(42.3%, 82%, 0%, 56.5%)
CIE-LABlab(18.96, 39.51, -43.67)
CIE-LCHlch(18.96, 58.90, 312.14°)
OKLaboklab(31.94% 0.0719 -0.1249)
OKLCHoklch(31.94% 0.144 299.9)
XYZxyz(5.2330, 2.7379, 15.2886)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40146F #436F14
analogous
#14156F #40146F #6D146F
triadic
#40146F #6F4014 #146F40
tetradic
#40146F #6F1415 #436F14 #146F6D
square
#40146F #6F1415 #436F14 #146F6D
split-complementary
#40146F #6F6D14 #156F14
monochromatic
#0F051A #220B3B #40146F #5E1DA3 #7C27D7

Accessibility & contrast

On white

13.57
#40146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#40146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40146F
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40146F#FFFFFF#000000##FFFFFF
##40146F1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#352D41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #40146f;
/* rgb */ color: rgb(64, 20, 111);
/* oklch */ color: oklch(31.9% 0.144 299.9);
Tailwind
colors: {
  custom: {
    50: '#7a5799',
    500: '#40146f',
    950: '#000000',
  },
}
SCSS
$custom: #40146f;
$custom-light: #7a5799;
$custom-dark: #000000;
JSON
{
  "hex": "#40146f",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 269.011,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31939,
    "c": 0.1441,
    "h": 299.9
  },
  "luminance": 0.02738
}

Semantic roles & 50–950 ramp

primary
#40146F
secondary
#71A639
accent
#EC3C97
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #40146F

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

Preview Lab → · Contrast checker → · Palette generator →

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