#40073C#40073C

#40073C is a dark, moderate purple. Relative luminance 0.016; OKLCH L 26.5% C 0.107 H 331.3°. Best body text is #FFFFFF at 15.99:1 contrast (WCAG AA passes).

Color values

HEX#40073C
RGBrgb(64, 7, 60)
HSLhsl(304, 80%, 14%)
HSVhsv(304, 89%, 25%)
CMYKcmyk(0%, 89.1%, 6.2%, 74.9%)
CIE-LABlab(13.04, 32.96, -18.67)
CIE-LCHlch(13.04, 37.88, 330.48°)
OKLaboklab(26.46% 0.0942 -0.0515)
OKLCHoklch(26.46% 0.107 331.3)
XYZxyz(3.0059, 1.5684, 4.4185)
Luminance0.0157 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40073C #07400B
analogous
#280740 #40073C #400720
triadic
#40073C #3C4007 #073C40
tetradic
#40073C #402807 #07400B #072040
square
#40073C #402807 #07400B #072040
split-complementary
#40073C #204007 #074028
monochromatic
#1C031A #1C031A #40073C #770D70 #AE13A3

Accessibility & contrast

On white

15.99
#40073C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#40073C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40073C
15.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40073C#FFFFFF#000000##FFFFFF
##40073C1.0015.991.3115.99
#FFFFFF15.991.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031D3D
Deuteranopia (green-blind)
#1A243B
Tritanopia (blue-blind)
#430F21
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #40073c;
/* rgb */ color: rgb(64, 7, 60);
/* oklch */ color: oklch(26.5% 0.107 331.3);
Tailwind
colors: {
  custom: {
    50: '#774f72',
    500: '#40073c',
    950: '#000000',
  },
}
SCSS
$custom: #40073c;
$custom-light: #774f72;
$custom-dark: #000000;
JSON
{
  "hex": "#40073c",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 60
  },
  "hsl": {
    "h": 304.211,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.2646,
    "c": 0.10734,
    "h": 331.3
  },
  "luminance": 0.01568
}

Semantic roles & 50–950 ramp

primary
#40073C
secondary
#247F2A
accent
#F73F31
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090208
muted
#7B787B

Preview Lab

Preview with #40073C

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

Preview Lab → · Contrast checker → · Palette generator →

#40073C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva