#401761#401761

#401761 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.125 H 305.5°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#401761
RGBrgb(64, 23, 97)
HSLhsl(273, 62%, 24%)
HSVhsv(273, 76%, 38%)
CMYKcmyk(34%, 76.3%, 0%, 62%)
CIE-LABlab(18.21, 34.45, -35.72)
CIE-LCHlch(18.21, 49.62, 313.96°)
OKLaboklab(31.03% 0.0725 -0.1015)
OKLCHoklch(31.03% 0.125 305.5)
XYZxyz(4.5779, 2.5659, 11.5610)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401761 #386117
analogous
#1B1761 #401761 #61175D
triadic
#401761 #614017 #176140
tetradic
#401761 #611B17 #386117 #175D61
square
#401761 #611B17 #386117 #175D61
split-complementary
#401761 #5D6117 #17611B
monochromatic
#100619 #1F0B30 #401761 #612392 #812EC4

Accessibility & contrast

On white

13.88
#401761 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#401761 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401761
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401761#FFFFFF#000000##FFFFFF
##4017611.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B63
Deuteranopia (green-blind)
#002D5F
Tritanopia (blue-blind)
#3A283A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #401761;
/* rgb */ color: rgb(64, 23, 97);
/* oklch */ color: oklch(31.0% 0.125 305.5);
Tailwind
colors: {
  custom: {
    50: '#78588e',
    500: '#401761',
    950: '#000000',
  },
}
SCSS
$custom: #401761;
$custom-light: #78588e;
$custom-dark: #000000;
JSON
{
  "hex": "#401761",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 97
  },
  "hsl": {
    "h": 273.243,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.31027,
    "c": 0.12471,
    "h": 305.5
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#401761
secondary
#65983C
accent
#E5438B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401761

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

Preview Lab → · Contrast checker → · Palette generator →

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