#401253#401253

#401253 is a dark, moderate purple. Relative luminance 0.021; OKLCH L 29.3% C 0.116 H 314.0°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#401253
RGBrgb(64, 18, 83)
HSLhsl(282, 64%, 20%)
HSVhsv(282, 78%, 33%)
CMYKcmyk(22.9%, 78.3%, 0%, 67.5%)
CIE-LABlab(16.24, 33.36, -29.52)
CIE-LCHlch(16.24, 44.55, 318.49°)
OKLaboklab(29.27% 0.0804 -0.0833)
OKLCHoklch(29.27% 0.116 314)
XYZxyz(3.8917, 2.1473, 8.3914)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401253 #255312
analogous
#201253 #401253 #531245
triadic
#401253 #534012 #125340
tetradic
#401253 #532012 #255312 #124553
square
#401253 #532012 #255312 #124553
split-complementary
#401253 #455312 #125320
monochromatic
#130519 #190721 #401253 #671D85 #8E28B8

Accessibility & contrast

On white

14.69
#401253 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#401253 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401253
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401253#FFFFFF#000000##FFFFFF
##4012531.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002655
Deuteranopia (green-blind)
#0E2952
Tritanopia (blue-blind)
#3E2031
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #401253;
/* rgb */ color: rgb(64, 18, 83);
/* oklch */ color: oklch(29.3% 0.116 314.0);
Tailwind
colors: {
  custom: {
    50: '#785584',
    500: '#401253',
    950: '#000000',
  },
}
SCSS
$custom: #401253;
$custom-light: #785584;
$custom-dark: #000000;
JSON
{
  "hex": "#401253",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 83
  },
  "hsl": {
    "h": 282.462,
    "s": 64.356,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29271,
    "c": 0.11578,
    "h": 314
  },
  "luminance": 0.02147
}

Semantic roles & 50–950 ramp

primary
#401253
secondary
#4E8C35
accent
#E74071
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401253

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

Preview Lab → · Contrast checker → · Palette generator →

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