#40146D#40146D

#40146D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.142 H 300.8°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#40146D
RGBrgb(64, 20, 109)
HSLhsl(270, 69%, 25%)
HSVhsv(270, 82%, 43%)
CMYKcmyk(41.3%, 81.7%, 0%, 57.3%)
CIE-LABlab(18.78, 38.99, -42.68)
CIE-LCHlch(18.78, 57.80, 312.41°)
OKLaboklab(31.75% 0.0726 -0.1219)
OKLCHoklch(31.75% 0.142 300.8)
XYZxyz(5.1241, 2.6944, 14.7151)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40146D #416D14
analogous
#14146D #40146D #6C146D
triadic
#40146D #6D4014 #146D40
tetradic
#40146D #6D1414 #416D14 #146D6C
square
#40146D #6D1414 #416D14 #146D6C
split-complementary
#40146D #6D6C14 #146D14
monochromatic
#0F051A #220B39 #40146D #5E1DA1 #7D27D4

Accessibility & contrast

On white

13.65
#40146D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#40146D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40146D
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40146D#FFFFFF#000000##FFFFFF
##40146D1.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#002D6B
Tritanopia (blue-blind)
#362C40
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #40146d;
/* rgb */ color: rgb(64, 20, 109);
/* oklch */ color: oklch(31.8% 0.142 300.8);
Tailwind
colors: {
  custom: {
    50: '#7a5798',
    500: '#40146d',
    950: '#000000',
  },
}
SCSS
$custom: #40146d;
$custom-light: #7a5798;
$custom-dark: #000000;
JSON
{
  "hex": "#40146d",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 109
  },
  "hsl": {
    "h": 269.663,
    "s": 68.992,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31752,
    "c": 0.14189,
    "h": 300.8
  },
  "luminance": 0.02694
}

Semantic roles & 50–950 ramp

primary
#40146D
secondary
#6FA439
accent
#EC3C95
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #40146D

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

Preview Lab → · Contrast checker → · Palette generator →

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