#401656#401656

#401656 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 30.0% C 0.113 H 311.6°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#401656
RGBrgb(64, 22, 86)
HSLhsl(279, 59%, 21%)
HSVhsv(279, 74%, 34%)
CMYKcmyk(25.6%, 74.4%, 0%, 66.3%)
CIE-LABlab(17.16, 32.15, -30.07)
CIE-LCHlch(17.16, 44.02, 316.91°)
OKLaboklab(30% 0.0753 -0.0849)
OKLCHoklch(30% 0.113 311.6)
XYZxyz(4.0807, 2.3358, 9.0382)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401656 #2C5616
analogous
#201656 #401656 #56164C
triadic
#401656 #564016 #165640
tetradic
#401656 #562016 #2C5616 #164C56
square
#401656 #562016 #2C5616 #164C56
split-complementary
#401656 #4C5616 #165620
monochromatic
#120618 #1C0A25 #401656 #642287 #892FB7

Accessibility & contrast

On white

14.31
#401656 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401656 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401656
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401656#FFFFFF#000000##FFFFFF
##4016561.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002858
Deuteranopia (green-blind)
#0E2B55
Tritanopia (blue-blind)
#3D2334
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #401656;
/* rgb */ color: rgb(64, 22, 86);
/* oklch */ color: oklch(30.0% 0.113 311.6);
Tailwind
colors: {
  custom: {
    50: '#785786',
    500: '#401656',
    950: '#000000',
  },
}
SCSS
$custom: #401656;
$custom-light: #785786;
$custom-dark: #000000;
JSON
{
  "hex": "#401656",
  "rgb": {
    "r": 64,
    "g": 22,
    "b": 86
  },
  "hsl": {
    "h": 279.375,
    "s": 59.259,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29998,
    "c": 0.11349,
    "h": 311.6
  },
  "luminance": 0.02336
}

Semantic roles & 50–950 ramp

primary
#401656
secondary
#578D3A
accent
#E2457B
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401656

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

Preview Lab → · Contrast checker → · Palette generator →

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