#401876#401876

#401876 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.148 H 296.7°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#401876
RGBrgb(64, 24, 118)
HSLhsl(266, 66%, 28%)
HSVhsv(266, 80%, 46%)
CMYKcmyk(45.8%, 79.7%, 0%, 53.7%)
CIE-LABlab(20.25, 39.59, -46.09)
CIE-LCHlch(20.25, 60.76, 310.66°)
OKLaboklab(33.04% 0.0663 -0.132)
OKLCHoklch(33.04% 0.148 296.7)
XYZxyz(5.7101, 3.0511, 17.4241)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401876 #4E7618
analogous
#181F76 #401876 #6F1876
triadic
#401876 #764018 #187640
tetradic
#401876 #76181F #4E7618 #18766F
square
#401876 #76181F #4E7618 #18766F
split-complementary
#401876 #766F18 #1F7618
monochromatic
#0E0519 #240E43 #401876 #5C22A9 #7833D5

Accessibility & contrast

On white

13.04
#401876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401876
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401876#FFFFFF#000000##FFFFFF
##4018761.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#003074
Tritanopia (blue-blind)
#313146
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401876;
/* rgb */ color: rgb(64, 24, 118);
/* oklch */ color: oklch(33.0% 0.148 296.7);
Tailwind
colors: {
  custom: {
    50: '#7b5a9e',
    500: '#401876',
    950: '#000000',
  },
}
SCSS
$custom: #401876;
$custom-light: #7b5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401876",
  "rgb": {
    "r": 64,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 265.532,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3304,
    "c": 0.14771,
    "h": 296.7
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

primary
#401876
secondary
#7DAB3F
accent
#E93FA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401876

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

Preview Lab → · Contrast checker → · Palette generator →

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