#40073A#40073A

#40073A is a dark, moderate purple. Relative luminance 0.015; OKLCH L 26.3% C 0.106 H 333.0°. Best body text is #FFFFFF at 16.04:1 contrast (WCAG AA passes).

Color values

HEX#40073A
RGBrgb(64, 7, 58)
HSLhsl(306, 80%, 14%)
HSVhsv(306, 89%, 25%)
CMYKcmyk(0%, 89.1%, 9.4%, 74.9%)
CIE-LABlab(12.91, 32.60, -17.44)
CIE-LCHlch(12.91, 36.97, 331.86°)
OKLaboklab(26.33% 0.0942 -0.0479)
OKLCHoklch(26.33% 0.106 333)
XYZxyz(2.9541, 1.5477, 4.1453)
Luminance0.0155 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40073A #07400D
analogous
#2A0740 #40073A #40071E
triadic
#40073A #3A4007 #073A40
tetradic
#40073A #402A07 #07400D #071E40
square
#40073A #402A07 #07400D #071E40
split-complementary
#40073A #1E4007 #07402A
monochromatic
#1C0319 #1C0319 #40073A #770D6C #AE139E

Accessibility & contrast

On white

16.04
#40073A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40073A
16.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40073A#FFFFFF#000000##FFFFFF
##40073A1.0016.041.3116.04
#FFFFFF16.041.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051C3B
Deuteranopia (green-blind)
#1B2439
Tritanopia (blue-blind)
#430D20
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #40073a;
/* rgb */ color: rgb(64, 7, 58);
/* oklch */ color: oklch(26.3% 0.106 333.0);
Tailwind
colors: {
  custom: {
    50: '#774f70',
    500: '#40073a',
    950: '#000000',
  },
}
SCSS
$custom: #40073a;
$custom-light: #774f70;
$custom-dark: #000000;
JSON
{
  "hex": "#40073a",
  "rgb": {
    "r": 64,
    "g": 7,
    "b": 58
  },
  "hsl": {
    "h": 306.316,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.26327,
    "c": 0.10566,
    "h": 333
  },
  "luminance": 0.01547
}

Semantic roles & 50–950 ramp

primary
#40073A
secondary
#247F2D
accent
#F74631
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40073A

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

Preview Lab → · Contrast checker → · Palette generator →

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