#401762#401762

#401762 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.126 H 305.0°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#401762
RGBrgb(64, 23, 98)
HSLhsl(273, 62%, 24%)
HSVhsv(273, 77%, 38%)
CMYKcmyk(34.7%, 76.5%, 0%, 61.6%)
CIE-LABlab(18.30, 34.71, -36.24)
CIE-LCHlch(18.30, 50.18, 313.76°)
OKLaboklab(31.11% 0.0723 -0.103)
OKLCHoklch(31.11% 0.126 305)
XYZxyz(4.6249, 2.5847, 11.8081)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401762 #396217
analogous
#1A1762 #401762 #62175E
triadic
#401762 #624017 #176240
tetradic
#401762 #621A17 #396217 #175E62
square
#401762 #621A17 #396217 #175E62
split-complementary
#401762 #5E6217 #17621A
monochromatic
#100619 #200B30 #401762 #602394 #812EC5

Accessibility & contrast

On white

13.84
#401762 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#401762 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401762
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401762#FFFFFF#000000##FFFFFF
##4017621.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C64
Deuteranopia (green-blind)
#002D60
Tritanopia (blue-blind)
#3A293B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401762;
/* rgb */ color: rgb(64, 23, 98);
/* oklch */ color: oklch(31.1% 0.126 305.0);
Tailwind
colors: {
  custom: {
    50: '#79588f',
    500: '#401762',
    950: '#000000',
  },
}
SCSS
$custom: #401762;
$custom-light: #79588f;
$custom-dark: #000000;
JSON
{
  "hex": "#401762",
  "rgb": {
    "r": 64,
    "g": 23,
    "b": 98
  },
  "hsl": {
    "h": 272.8,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.31113,
    "c": 0.12586,
    "h": 305
  },
  "luminance": 0.02585
}

Semantic roles & 50–950 ramp

primary
#401762
secondary
#66993C
accent
#E5438C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401762

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

Preview Lab → · Contrast checker → · Palette generator →

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