#401874#401874

#401874 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.145 H 297.4°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#401874
RGBrgb(64, 24, 116)
HSLhsl(266, 66%, 27%)
HSVhsv(266, 79%, 45%)
CMYKcmyk(44.8%, 79.3%, 0%, 54.5%)
CIE-LABlab(20.06, 39.04, -45.11)
CIE-LCHlch(20.06, 59.66, 310.88°)
OKLaboklab(32.85% 0.0669 -0.1291)
OKLCHoklch(32.85% 0.145 297.4)
XYZxyz(5.5925, 3.0041, 16.8048)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401874 #4C7418
analogous
#181E74 #401874 #6E1874
triadic
#401874 #744018 #187440
tetradic
#401874 #74181E #4C7418 #18746E
square
#401874 #74181E #4C7418 #18746E
split-complementary
#401874 #746E18 #1E7418
monochromatic
#0E0519 #240E41 #401874 #5C22A7 #7932D5

Accessibility & contrast

On white

13.12
#401874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#401874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401874
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401874#FFFFFF#000000##FFFFFF
##4018741.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#323145
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #401874;
/* rgb */ color: rgb(64, 24, 116);
/* oklch */ color: oklch(32.9% 0.145 297.4);
Tailwind
colors: {
  custom: {
    50: '#7b5a9d',
    500: '#401874',
    950: '#000000',
  },
}
SCSS
$custom: #401874;
$custom-light: #7b5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#401874",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 266.087,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32851,
    "c": 0.14541,
    "h": 297.4
  },
  "luminance": 0.03004
}

Semantic roles & 50–950 ramp

primary
#401874
secondary
#7BA93F
accent
#E93F9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401874

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

Preview Lab → · Contrast checker → · Palette generator →

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