#40133C#40133C

#40133C is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.8% C 0.090 H 331.4°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#40133C
RGBrgb(64, 19, 60)
HSLhsl(305, 54%, 16%)
HSVhsv(305, 70%, 25%)
CMYKcmyk(0%, 70.3%, 6.2%, 74.9%)
CIE-LABlab(14.86, 27.82, -15.80)
CIE-LCHlch(14.86, 31.99, 330.41°)
OKLaboklab(27.77% 0.0793 -0.0433)
OKLCHoklch(27.77% 0.09 331.4)
XYZxyz(3.1628, 1.8822, 4.4708)
Luminance0.0188 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40133C #134017
analogous
#2E1340 #40133C #401326
triadic
#40133C #3C4013 #133C40
tetradic
#40133C #402E13 #134017 #132640
square
#40133C #402E13 #134017 #132640
split-complementary
#40133C #264013 #13402E
monochromatic
#180716 #180716 #40133C #6F2168 #9E2F94

Accessibility & contrast

On white

15.26
#40133C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#40133C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40133C
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40133C#FFFFFF#000000##FFFFFF
##40133C1.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11213D
Deuteranopia (green-blind)
#20283B
Tritanopia (blue-blind)
#431725
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40133c;
/* rgb */ color: rgb(64, 19, 60);
/* oklch */ color: oklch(27.8% 0.090 331.4);
Tailwind
colors: {
  custom: {
    50: '#775472',
    500: '#40133c',
    950: '#000000',
  },
}
SCSS
$custom: #40133c;
$custom-light: #775472;
$custom-dark: #000000;
JSON
{
  "hex": "#40133c",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 60
  },
  "hsl": {
    "h": 305.333,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.27773,
    "c": 0.09039,
    "h": 331.4
  },
  "luminance": 0.01882
}

Semantic roles & 50–950 ramp

primary
#40133C
secondary
#36793C
accent
#DE574A
background
#F7F5F6
surface
#EDE9EC
border
#C8C5C7
text
#090308
muted
#7B787B

Preview Lab

Preview with #40133C

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

Preview Lab → · Contrast checker → · Palette generator →

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