#401243#401243

#401243 is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.099 H 325.3°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#401243
RGBrgb(64, 18, 67)
HSLhsl(296, 58%, 17%)
HSVhsv(296, 73%, 26%)
CMYKcmyk(4.5%, 73.1%, 0%, 73.7%)
CIE-LABlab(15.11, 29.76, -20.32)
CIE-LCHlch(15.11, 36.04, 325.67°)
OKLaboklab(28.09% 0.0813 -0.0564)
OKLCHoklch(28.09% 0.099 325.3)
XYZxyz(3.3437, 1.9281, 5.5051)
Luminance0.0193 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401243 #154312
analogous
#281243 #401243 #43122E
triadic
#401243 #434012 #124340
tetradic
#401243 #432812 #154312 #122E43
square
#401243 #432812 #154312 #122E43
split-complementary
#401243 #2E4312 #124328
monochromatic
#170618 #170618 #401243 #6E1F73 #9C2CA3

Accessibility & contrast

On white

15.16
#401243 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#401243 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401243
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401243#FFFFFF#000000##FFFFFF
##4012431.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092244
Deuteranopia (green-blind)
#1B2842
Tritanopia (blue-blind)
#421928
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #401243;
/* rgb */ color: rgb(64, 18, 67);
/* oklch */ color: oklch(28.1% 0.099 325.3);
Tailwind
colors: {
  custom: {
    50: '#775477',
    500: '#401243',
    950: '#000000',
  },
}
SCSS
$custom: #401243;
$custom-light: #775477;
$custom-dark: #000000;
JSON
{
  "hex": "#401243",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 67
  },
  "hsl": {
    "h": 296.327,
    "s": 57.647,
    "l": 16.667
  },
  "oklch": {
    "l": 0.28092,
    "c": 0.09897,
    "h": 325.3
  },
  "luminance": 0.01928
}

Semantic roles & 50–950 ramp

primary
#401243
secondary
#397C35
accent
#E14750
background
#F7F5F7
surface
#EDE8ED
border
#C8C4C8
text
#090308
muted
#7B787B

Preview Lab

Preview with #401243

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

Preview Lab → · Contrast checker → · Palette generator →

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