#401255#401255

#401255 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.4% C 0.118 H 312.8°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#401255
RGBrgb(64, 18, 85)
HSLhsl(281, 65%, 20%)
HSVhsv(281, 79%, 33%)
CMYKcmyk(24.7%, 78.8%, 0%, 66.7%)
CIE-LABlab(16.40, 33.84, -30.63)
CIE-LCHlch(16.40, 45.64, 317.85°)
OKLaboklab(29.43% 0.0802 -0.0865)
OKLCHoklch(29.43% 0.118 312.8)
XYZxyz(3.9701, 2.1786, 8.8039)
Luminance0.0218 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401255 #275512
analogous
#1E1255 #401255 #551248
triadic
#401255 #554012 #125540
tetradic
#401255 #551E12 #275512 #124855
square
#401255 #551E12 #275512 #124855
split-complementary
#401255 #485512 #12551E
monochromatic
#130519 #1A0722 #401255 #661D88 #8C27BA

Accessibility & contrast

On white

14.63
#401255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#401255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401255
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401255#FFFFFF#000000##FFFFFF
##4012551.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002657
Deuteranopia (green-blind)
#0B2A54
Tritanopia (blue-blind)
#3E2132
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #401255;
/* rgb */ color: rgb(64, 18, 85);
/* oklch */ color: oklch(29.4% 0.118 312.8);
Tailwind
colors: {
  custom: {
    50: '#785585',
    500: '#401255',
    950: '#000000',
  },
}
SCSS
$custom: #401255;
$custom-light: #785585;
$custom-dark: #000000;
JSON
{
  "hex": "#401255",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 281.194,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29431,
    "c": 0.11794,
    "h": 312.8
  },
  "luminance": 0.02178
}

Semantic roles & 50–950 ramp

primary
#401255
secondary
#518E35
accent
#E84075
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401255

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

Preview Lab → · Contrast checker → · Palette generator →

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