#401274#401274

#401274 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.152 H 298.3°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#401274
RGBrgb(64, 18, 116)
HSLhsl(268, 73%, 26%)
HSVhsv(268, 84%, 45%)
CMYKcmyk(44.8%, 84.5%, 0%, 54.5%)
CIE-LABlab(19.16, 41.66, -46.59)
CIE-LCHlch(19.16, 62.50, 311.80°)
OKLaboklab(32.22% 0.0719 -0.1334)
OKLCHoklch(32.22% 0.152 298.3)
XYZxyz(5.4822, 2.7835, 16.7680)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401274 #467412
analogous
#121574 #401274 #711274
triadic
#401274 #744012 #127440
tetradic
#401274 #741215 #467412 #127471
square
#401274 #741215 #467412 #127471
split-complementary
#401274 #747112 #157412
monochromatic
#0F041A #230A3F #401274 #5D1AA9 #7B23DD

Accessibility & contrast

On white

13.49
#401274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#401274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401274
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401274#FFFFFF#000000##FFFFFF
##4012741.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #401274;
/* rgb */ color: rgb(64, 18, 116);
/* oklch */ color: oklch(32.2% 0.152 298.3);
Tailwind
colors: {
  custom: {
    50: '#7b579d',
    500: '#401274',
    950: '#000000',
  },
}
SCSS
$custom: #401274;
$custom-light: #7b579d;
$custom-dark: #000000;
JSON
{
  "hex": "#401274",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 268.163,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.3222,
    "c": 0.15157,
    "h": 298.3
  },
  "luminance": 0.02784
}

Semantic roles & 50–950 ramp

primary
#401274
secondary
#74AB37
accent
#F0389A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401274

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

Preview Lab → · Contrast checker → · Palette generator →

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