#401765#401765

#401765 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.129 H 303.6°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#401765
RGBrgb(64, 23, 101)
HSLhsl(272, 63%, 24%)
HSVhsv(272, 77%, 40%)
CMYKcmyk(36.6%, 77.2%, 0%, 60.4%)
CIE-LABlab(18.55, 35.49, -37.81)
CIE-LCHlch(18.55, 51.86, 313.19°)
OKLaboklab(31.37% 0.0716 -0.1077)
OKLCHoklch(31.37% 0.129 303.6)
XYZxyz(4.7692, 2.6424, 12.5682)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401765 #3C6517
analogous
#191765 #401765 #651763
triadic
#401765 #654017 #176540
tetradic
#401765 #651917 #3C6517 #176365
square
#401765 #651917 #3C6517 #176365
split-complementary
#401765 #636517 #176519
monochromatic
#100619 #200C33 #401765 #602297 #7F2EC9

Accessibility & contrast

On white

13.74
#401765 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401765 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401765
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401765#FFFFFF#000000##FFFFFF
##4017651.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C67
Deuteranopia (green-blind)
#002D63
Tritanopia (blue-blind)
#392A3C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401765;
/* rgb */ color: rgb(64, 23, 101);
/* oklch */ color: oklch(31.4% 0.129 303.6);
Tailwind
colors: {
  custom: {
    50: '#795892',
    500: '#401765',
    950: '#000000',
  },
}
SCSS
$custom: #401765;
$custom-light: #795892;
$custom-dark: #000000;
JSON
{
  "hex": "#401765",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 101
  },
  "hsl": {
    "h": 271.538,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.31372,
    "c": 0.12932,
    "h": 303.6
  },
  "luminance": 0.02642
}

Semantic roles & 50–950 ramp

primary
#401765
secondary
#699B3C
accent
#E64290
background
#F7F5F9
surface
#EEE9F1
border
#C9C5CB
text
#09030D
muted
#7B787E

Preview Lab

Preview with #401765

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

Preview Lab → · Contrast checker → · Palette generator →

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