#40123D#40123D

#40123D is a dark, moderate purple. Relative luminance 0.019; OKLCH L 27.7% C 0.093 H 330.4°. Best body text is #FFFFFF at 15.31:1 contrast (WCAG AA passes).

Color values

HEX#40123D
RGBrgb(64, 18, 61)
HSLhsl(304, 56%, 16%)
HSVhsv(304, 72%, 25%)
CMYKcmyk(0%, 71.9%, 4.7%, 74.9%)
CIE-LABlab(14.73, 28.52, -16.70)
CIE-LCHlch(14.73, 33.05, 329.65°)
OKLaboklab(27.7% 0.0809 -0.0459)
OKLCHoklch(27.7% 0.093 330.4)
XYZxyz(3.1729, 1.8598, 4.6058)
Luminance0.0186 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40123D #124015
analogous
#2C1240 #40123D #401226
triadic
#40123D #3D4012 #123D40
tetradic
#40123D #402C12 #124015 #122640
square
#40123D #402C12 #124015 #122640
split-complementary
#40123D #264012 #12402C
monochromatic
#180717 #180717 #40123D #701F6B #A02D98

Accessibility & contrast

On white

15.31
#40123D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#40123D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40123D
15.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40123D#FFFFFF#000000##FFFFFF
##40123D1.0015.311.3715.31
#FFFFFF15.311.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F213E
Deuteranopia (green-blind)
#1F273C
Tritanopia (blue-blind)
#431725
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40123d;
/* rgb */ color: rgb(64, 18, 61);
/* oklch */ color: oklch(27.7% 0.093 330.4);
Tailwind
colors: {
  custom: {
    50: '#775472',
    500: '#40123d',
    950: '#000000',
  },
}
SCSS
$custom: #40123d;
$custom-light: #775472;
$custom-dark: #000000;
JSON
{
  "hex": "#40123d",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 61
  },
  "hsl": {
    "h": 303.913,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27702,
    "c": 0.09301,
    "h": 330.4
  },
  "luminance": 0.0186
}

Semantic roles & 50–950 ramp

primary
#40123D
secondary
#357939
accent
#DF5248
background
#F7F4F6
surface
#EDE8EC
border
#C8C4C7
text
#090308
muted
#7B787B

Preview Lab

Preview with #40123D

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

Preview Lab → · Contrast checker → · Palette generator →

#40123D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva