#40154A#40154A

#40154A is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.0% C 0.102 H 319.6°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#40154A
RGBrgb(64, 21, 74)
HSLhsl(289, 56%, 19%)
HSVhsv(289, 72%, 29%)
CMYKcmyk(13.5%, 71.6%, 0%, 71%)
CIE-LABlab(16.11, 29.80, -23.58)
CIE-LCHlch(16.11, 38.00, 321.64°)
OKLaboklab(28.97% 0.0773 -0.0659)
OKLCHoklch(28.97% 0.102 319.6)
XYZxyz(3.6184, 2.1209, 6.6960)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40154A #1F4A15
analogous
#25154A #40154A #4A1539
triadic
#40154A #4A4015 #154A40
tetradic
#40154A #4A2515 #1F4A15 #15394A
square
#40154A #4A2515 #1F4A15 #15394A
split-complementary
#40154A #394A15 #154A25
monochromatic
#150718 #17071A #40154A #69237A #9230A9

Accessibility & contrast

On white

14.75
#40154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#40154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40154A
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40154A#FFFFFF#000000##FFFFFF
##40154A1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06254C
Deuteranopia (green-blind)
#192949
Tritanopia (blue-blind)
#401E2D
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #40154a;
/* rgb */ color: rgb(64, 21, 74);
/* oklch */ color: oklch(29.0% 0.102 319.6);
Tailwind
colors: {
  custom: {
    50: '#77567d',
    500: '#40154a',
    950: '#000000',
  },
}
SCSS
$custom: #40154a;
$custom-light: #77567d;
$custom-dark: #000000;
JSON
{
  "hex": "#40154a",
  "rgb": {
    "r": 64,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 288.679,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.28967,
    "c": 0.1016,
    "h": 319.6
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#40154A
secondary
#478239
accent
#DF4965
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #40154A

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

Preview Lab → · Contrast checker → · Palette generator →

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