#40123F#40123F

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

Color values

HEX#40123F
RGBrgb(64, 18, 63)
HSLhsl(301, 56%, 16%)
HSVhsv(301, 72%, 25%)
CMYKcmyk(0%, 71.9%, 1.6%, 74.9%)
CIE-LABlab(14.85, 28.93, -17.92)
CIE-LCHlch(14.85, 34.03, 328.22°)
OKLaboklab(27.83% 0.0811 -0.0494)
OKLCHoklch(27.83% 0.095 328.6)
XYZxyz(3.2278, 1.8817, 4.8949)
Luminance0.0188 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40123F #124013
analogous
#2A1240 #40123F #401228
triadic
#40123F #3F4012 #123F40
tetradic
#40123F #402A12 #124013 #122840
square
#40123F #402A12 #124013 #122840
split-complementary
#40123F #284012 #12402A
monochromatic
#180718 #180718 #40123F #701F6E #A02D9D

Accessibility & contrast

On white

15.26
#40123F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#40123F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40123F
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40123F#FFFFFF#000000##FFFFFF
##40123F1.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)
#0D2140
Deuteranopia (green-blind)
#1E283E
Tritanopia (blue-blind)
#421826
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #40123f;
/* rgb */ color: rgb(64, 18, 63);
/* oklch */ color: oklch(27.8% 0.095 328.6);
Tailwind
colors: {
  custom: {
    50: '#775474',
    500: '#40123f',
    950: '#000000',
  },
}
SCSS
$custom: #40123f;
$custom-light: #775474;
$custom-dark: #000000;
JSON
{
  "hex": "#40123f",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 63
  },
  "hsl": {
    "h": 301.304,
    "s": 56.098,
    "l": 16.078
  },
  "oklch": {
    "l": 0.27829,
    "c": 0.09496,
    "h": 328.6
  },
  "luminance": 0.01881
}

Semantic roles & 50–950 ramp

primary
#40123F
secondary
#357936
accent
#DF4C48
background
#F7F5F7
surface
#EDE8ED
border
#C8C4C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #40123F

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

Preview Lab → · Contrast checker → · Palette generator →

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