#401756#401756

#401756 is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.1% C 0.112 H 311.4°. Best body text is #FFFFFF at 14.24:1 contrast (WCAG AA passes).

Color values

HEX#401756
RGBrgb(64, 23, 86)
HSLhsl(279, 58%, 21%)
HSVhsv(279, 73%, 34%)
CMYKcmyk(25.6%, 73.3%, 0%, 66.3%)
CIE-LABlab(17.34, 31.64, -29.78)
CIE-LCHlch(17.34, 43.45, 316.74°)
OKLaboklab(30.13% 0.074 -0.0841)
OKLCHoklch(30.13% 0.112 311.4)
XYZxyz(4.1001, 2.3748, 9.0447)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401756 #2D5617
analogous
#211756 #401756 #56174D
triadic
#401756 #564017 #175640
tetradic
#401756 #562117 #2D5617 #174D56
square
#401756 #562117 #2D5617 #174D56
split-complementary
#401756 #4D5617 #175621
monochromatic
#120618 #1C0A26 #401756 #642486 #8831B7

Accessibility & contrast

On white

14.24
#401756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401756
14.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401756#FFFFFF#000000##FFFFFF
##4017561.0014.241.4814.24
#FFFFFF14.241.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#102B55
Tritanopia (blue-blind)
#3D2434
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401756;
/* rgb */ color: rgb(64, 23, 86);
/* oklch */ color: oklch(30.1% 0.112 311.4);
Tailwind
colors: {
  custom: {
    50: '#775886',
    500: '#401756',
    950: '#000000',
  },
}
SCSS
$custom: #401756;
$custom-light: #775886;
$custom-dark: #000000;
JSON
{
  "hex": "#401756",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 86
  },
  "hsl": {
    "h": 279.048,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.3013,
    "c": 0.11201,
    "h": 311.4
  },
  "luminance": 0.02375
}

Semantic roles & 50–950 ramp

primary
#401756
secondary
#588D3C
accent
#E1477D
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #401756

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

Preview Lab → · Contrast checker → · Palette generator →

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