#40146A#40146A

#40146A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.139 H 302.0°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#40146A
RGBrgb(64, 20, 106)
HSLhsl(271, 68%, 25%)
HSVhsv(271, 81%, 42%)
CMYKcmyk(39.6%, 81.1%, 0%, 58.4%)
CIE-LABlab(18.50, 38.20, -41.17)
CIE-LCHlch(18.50, 56.17, 312.86°)
OKLaboklab(31.47% 0.0734 -0.1175)
OKLCHoklch(31.47% 0.139 302)
XYZxyz(4.9654, 2.6309, 13.8791)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40146A #3E6A14
analogous
#15146A #40146A #6A1469
triadic
#40146A #6A4014 #146A40
tetradic
#40146A #6A1514 #3E6A14 #14696A
square
#40146A #6A1514 #3E6A14 #14696A
split-complementary
#40146A #696A14 #146A15
monochromatic
#10051A #210A37 #40146A #5F1E9D #7E27D1

Accessibility & contrast

On white

13.76
#40146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#40146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40146A
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40146A#FFFFFF#000000##FFFFFF
##40146A1.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002D68
Tritanopia (blue-blind)
#372B3E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #40146a;
/* rgb */ color: rgb(64, 20, 106);
/* oklch */ color: oklch(31.5% 0.139 302.0);
Tailwind
colors: {
  custom: {
    50: '#7a5795',
    500: '#40146a',
    950: '#000000',
  },
}
SCSS
$custom: #40146a;
$custom-light: #7a5795;
$custom-dark: #000000;
JSON
{
  "hex": "#40146a",
  "rgb": {
    "r": 64,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 270.698,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31474,
    "c": 0.13856,
    "h": 302
  },
  "luminance": 0.02631
}

Semantic roles & 50–950 ramp

primary
#40146A
secondary
#6CA139
accent
#EB3D92
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #40146A

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

Preview Lab → · Contrast checker → · Palette generator →

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