#401974#401974

#401974 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.144 H 297.2°. Best body text is #FFFFFF at 13.05:1 contrast (WCAG AA passes).

Color values

HEX#401974
RGBrgb(64, 25, 116)
HSLhsl(266, 65%, 28%)
HSVhsv(266, 78%, 45%)
CMYKcmyk(44.8%, 78.4%, 0%, 54.5%)
CIE-LABlab(20.23, 38.56, -44.83)
CIE-LCHlch(20.23, 59.14, 310.70°)
OKLaboklab(32.97% 0.066 -0.1283)
OKLCHoklch(32.97% 0.144 297.2)
XYZxyz(5.6135, 3.0461, 16.8118)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401974 #4D7419
analogous
#192074 #401974 #6D1974
triadic
#401974 #744019 #197440
tetradic
#401974 #741920 #4D7419 #19746D
square
#401974 #741920 #4D7419 #19746D
split-complementary
#401974 #746D19 #207419
monochromatic
#0E0519 #240E42 #401974 #5C24A6 #7834D3

Accessibility & contrast

On white

13.05
#401974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401974
13.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401974#FFFFFF#000000##FFFFFF
##4019741.0013.051.6113.05
#FFFFFF13.051.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003177
Deuteranopia (green-blind)
#003072
Tritanopia (blue-blind)
#323145
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401974;
/* rgb */ color: rgb(64, 25, 116);
/* oklch */ color: oklch(33.0% 0.144 297.2);
Tailwind
colors: {
  custom: {
    50: '#7b5a9d',
    500: '#401974',
    950: '#000000',
  },
}
SCSS
$custom: #401974;
$custom-light: #7b5a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#401974",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 116
  },
  "hsl": {
    "h": 265.714,
    "s": 64.539,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32969,
    "c": 0.14427,
    "h": 297.2
  },
  "luminance": 0.03046
}

Semantic roles & 50–950 ramp

primary
#401974
secondary
#7CA940
accent
#E840A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401974

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

Preview Lab → · Contrast checker → · Palette generator →

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