#401249#401249

#401249 is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.5% C 0.105 H 320.7°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#401249
RGBrgb(64, 18, 73)
HSLhsl(290, 60%, 18%)
HSVhsv(290, 75%, 29%)
CMYKcmyk(12.3%, 75.3%, 0%, 71.4%)
CIE-LABlab(15.51, 31.06, -23.85)
CIE-LCHlch(15.51, 39.16, 322.48°)
OKLaboklab(28.51% 0.0813 -0.0667)
OKLCHoklch(28.51% 0.105 320.7)
XYZxyz(3.5331, 2.0038, 6.5027)
Luminance0.0200 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401249 #1B4912
analogous
#241249 #401249 #491236
triadic
#401249 #494012 #124940
tetradic
#401249 #492412 #1B4912 #123649
square
#401249 #492412 #1B4912 #123649
split-complementary
#401249 #364912 #124924
monochromatic
#160619 #160619 #401249 #6B1E7A #962AAB

Accessibility & contrast

On white

14.99
#401249 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#401249 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401249
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401249#FFFFFF#000000##FFFFFF
##4012491.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02244B
Deuteranopia (green-blind)
#182848
Tritanopia (blue-blind)
#401C2C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #401249;
/* rgb */ color: rgb(64, 18, 73);
/* oklch */ color: oklch(28.5% 0.105 320.7);
Tailwind
colors: {
  custom: {
    50: '#77547c',
    500: '#401249',
    950: '#000000',
  },
}
SCSS
$custom: #401249;
$custom-light: #77547c;
$custom-dark: #000000;
JSON
{
  "hex": "#401249",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 73
  },
  "hsl": {
    "h": 290.182,
    "s": 60.44,
    "l": 17.843
  },
  "oklch": {
    "l": 0.28511,
    "c": 0.10516,
    "h": 320.7
  },
  "luminance": 0.02004
}

Semantic roles & 50–950 ramp

primary
#401249
secondary
#418235
accent
#E4445E
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#090309
muted
#7B787B

Preview Lab

Preview with #401249

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

Preview Lab → · Contrast checker → · Palette generator →

#401249 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva