#401250#401250

#401250 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.0% C 0.113 H 315.9°. Best body text is #FFFFFF at 14.78:1 contrast (WCAG AA passes).

Color values

HEX#401250
RGBrgb(64, 18, 80)
HSLhsl(285, 63%, 19%)
HSVhsv(285, 78%, 31%)
CMYKcmyk(20%, 77.5%, 0%, 68.6%)
CIE-LABlab(16.01, 32.66, -27.85)
CIE-LCHlch(16.01, 42.92, 319.54°)
OKLaboklab(29.04% 0.0808 -0.0784)
OKLCHoklch(29.04% 0.113 315.9)
XYZxyz(3.7784, 2.1019, 7.7945)
Luminance0.0210 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401250 #225012
analogous
#211250 #401250 #501241
triadic
#401250 #504012 #125040
tetradic
#401250 #502112 #225012 #124150
square
#401250 #502112 #225012 #124150
split-complementary
#401250 #415012 #125021
monochromatic
#140619 #18071E #401250 #681D82 #9028B4

Accessibility & contrast

On white

14.78
#401250 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#401250 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401250
14.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401250#FFFFFF#000000##FFFFFF
##4012501.0014.781.4214.78
#FFFFFF14.781.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#11294F
Tritanopia (blue-blind)
#3F1F2F
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401250;
/* rgb */ color: rgb(64, 18, 80);
/* oklch */ color: oklch(29.0% 0.113 315.9);
Tailwind
colors: {
  custom: {
    50: '#775581',
    500: '#401250',
    950: '#000000',
  },
}
SCSS
$custom: #401250;
$custom-light: #775581;
$custom-dark: #000000;
JSON
{
  "hex": "#401250",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 80
  },
  "hsl": {
    "h": 284.516,
    "s": 63.265,
    "l": 19.216
  },
  "oklch": {
    "l": 0.29035,
    "c": 0.11257,
    "h": 315.9
  },
  "luminance": 0.02102
}

Semantic roles & 50–950 ramp

primary
#401250
secondary
#4B8935
accent
#E6416C
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #401250

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

Preview Lab → · Contrast checker → · Palette generator →

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