#401074#401074

#401074 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.153 H 298.6°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#401074
RGBrgb(64, 16, 116)
HSLhsl(269, 76%, 26%)
HSVhsv(269, 86%, 45%)
CMYKcmyk(44.8%, 86.2%, 0%, 54.5%)
CIE-LABlab(18.89, 42.43, -47.02)
CIE-LCHlch(18.89, 63.33, 312.06°)
OKLaboklab(32.04% 0.0734 -0.1346)
OKLCHoklch(32.04% 0.153 298.6)
XYZxyz(5.4512, 2.7214, 16.7577)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401074 #447410
analogous
#101274 #401074 #721074
triadic
#401074 #744010 #107440
tetradic
#401074 #741012 #447410 #107472
square
#401074 #741012 #447410 #107472
split-complementary
#401074 #747210 #127410
monochromatic
#0F041B #22093E #401074 #5E17AA #7B1FE0

Accessibility & contrast

On white

13.60
#401074 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#401074 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401074
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401074#FFFFFF#000000##FFFFFF
##4010741.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#332D43
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401074;
/* rgb */ color: rgb(64, 16, 116);
/* oklch */ color: oklch(32.0% 0.153 298.6);
Tailwind
colors: {
  custom: {
    50: '#7b569d',
    500: '#401074',
    950: '#000000',
  },
}
SCSS
$custom: #401074;
$custom-light: #7b569d;
$custom-dark: #000000;
JSON
{
  "hex": "#401074",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 116
  },
  "hsl": {
    "h": 268.8,
    "s": 75.758,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32038,
    "c": 0.15337,
    "h": 298.6
  },
  "luminance": 0.02722
}

Semantic roles & 50–950 ramp

primary
#401074
secondary
#72AB35
accent
#F23598
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401074

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

Preview Lab → · Contrast checker → · Palette generator →

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