#40063A#40063A

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

Color values

HEX#40063A
RGBrgb(64, 6, 58)
HSLhsl(306, 83%, 14%)
HSVhsv(306, 91%, 25%)
CMYKcmyk(0%, 90.6%, 9.4%, 74.9%)
CIE-LABlab(12.77, 32.99, -17.65)
CIE-LCHlch(12.77, 37.42, 331.85°)
OKLaboklab(26.23% 0.0953 -0.0486)
OKLCHoklch(26.23% 0.107 333)
XYZxyz(2.9432, 1.5260, 4.1417)
Luminance0.0153 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40063A #06400C
analogous
#290640 #40063A #40061D
triadic
#40063A #3A4006 #063A40
tetradic
#40063A #402906 #06400C #061D40
square
#40063A #402906 #06400C #061D40
split-complementary
#40063A #1D4006 #064029
monochromatic
#1C0319 #1C0319 #40063A #780B6D #B0109F

Accessibility & contrast

On white

16.09
#40063A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40063A
16.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40063A#FFFFFF#000000##FFFFFF
##40063A1.0016.091.3116.09
#FFFFFF16.091.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40063a;
/* rgb */ color: rgb(64, 6, 58);
/* oklch */ color: oklch(26.2% 0.107 333.0);
Tailwind
colors: {
  custom: {
    50: '#774e70',
    500: '#40063a',
    950: '#000000',
  },
}
SCSS
$custom: #40063a;
$custom-light: #774e70;
$custom-dark: #000000;
JSON
{
  "hex": "#40063a",
  "rgb": {
    "r": 64,
    "g": 6,
    "b": 58
  },
  "hsl": {
    "h": 306.207,
    "s": 82.857,
    "l": 13.725
  },
  "oklch": {
    "l": 0.2623,
    "c": 0.10696,
    "h": 333
  },
  "luminance": 0.01526
}

Semantic roles & 50–950 ramp

primary
#40063A
secondary
#22802C
accent
#F9442F
background
#F7F4F6
surface
#EDE7EC
border
#C8C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #40063A

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

Preview Lab → · Contrast checker → · Palette generator →

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