#401875#401875

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

Color values

HEX#401875
RGBrgb(64, 24, 117)
HSLhsl(266, 66%, 28%)
HSVhsv(266, 79%, 46%)
CMYKcmyk(45.3%, 79.5%, 0%, 54.1%)
CIE-LABlab(20.15, 39.31, -45.60)
CIE-LCHlch(20.15, 60.21, 310.77°)
OKLaboklab(32.95% 0.0666 -0.1305)
OKLCHoklch(32.95% 0.147 297)
XYZxyz(5.6510, 3.0275, 17.1128)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401875 #4D7518
analogous
#181F75 #401875 #6E1875
triadic
#401875 #754018 #187540
tetradic
#401875 #75181F #4D7518 #18756E
square
#401875 #75181F #4D7518 #18756E
split-complementary
#401875 #756E18 #1F7518
monochromatic
#0E0519 #240E42 #401875 #5C22A8 #7832D5

Accessibility & contrast

On white

13.08
#401875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401875
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401875#FFFFFF#000000##FFFFFF
##4018751.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#323146
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401875;
/* rgb */ color: rgb(64, 24, 117);
/* oklch */ color: oklch(32.9% 0.147 297.0);
Tailwind
colors: {
  custom: {
    50: '#7b5a9e',
    500: '#401875',
    950: '#000000',
  },
}
SCSS
$custom: #401875;
$custom-light: #7b5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401875",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 265.806,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32946,
    "c": 0.14656,
    "h": 297
  },
  "luminance": 0.03028
}

Semantic roles & 50–950 ramp

primary
#401875
secondary
#7CAA3F
accent
#E93FA0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401875

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

Preview Lab → · Contrast checker → · Palette generator →

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