#40123A#40123A

#40123A is a dark, moderate purple. Relative luminance 0.018; OKLCH L 27.5% C 0.090 H 333.3°. Best body text is #FFFFFF at 15.38:1 contrast (WCAG AA passes).

Color values

HEX#40123A
RGBrgb(64, 18, 58)
HSLhsl(308, 56%, 16%)
HSVhsv(308, 72%, 25%)
CMYKcmyk(0%, 71.9%, 9.4%, 74.9%)
CIE-LABlab(14.56, 27.93, -14.85)
CIE-LCHlch(14.56, 31.63, 332.01°)
OKLaboklab(27.52% 0.0805 -0.0406)
OKLCHoklch(27.52% 0.09 333.3)
XYZxyz(3.0944, 1.8283, 4.1921)
Luminance0.0183 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40123A #124018
analogous
#2F1240 #40123A #401223
triadic
#40123A #3A4012 #123A40
tetradic
#40123A #402F12 #124018 #122340
square
#40123A #402F12 #124018 #122340
split-complementary
#40123A #234012 #12402F
monochromatic
#180716 #180716 #40123A #701F65 #A02D91

Accessibility & contrast

On white

15.38
#40123A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40123A
15.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40123A#FFFFFF#000000##FFFFFF
##40123A1.0015.381.3715.38
#FFFFFF15.381.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11213B
Deuteranopia (green-blind)
#202739
Tritanopia (blue-blind)
#431624
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40123a;
/* rgb */ color: rgb(64, 18, 58);
/* oklch */ color: oklch(27.5% 0.090 333.3);
Tailwind
colors: {
  custom: {
    50: '#775470',
    500: '#40123a',
    950: '#000000',
  },
}
SCSS
$custom: #40123a;
$custom-light: #775470;
$custom-dark: #000000;
JSON
{
  "hex": "#40123a",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 58
  },
  "hsl": {
    "h": 307.826,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27519,
    "c": 0.09017,
    "h": 333.3
  },
  "luminance": 0.01828
}

Semantic roles & 50–950 ramp

primary
#40123A
secondary
#35793E
accent
#DF5C48
background
#F7F4F6
surface
#EDE8EC
border
#C8C4C7
text
#090307
muted
#7B787A

Preview Lab

Preview with #40123A

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

Preview Lab → · Contrast checker → · Palette generator →

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