#401260#401260

#401260 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.130 H 306.9°. Best body text is #FFFFFF at 14.25:1 contrast (WCAG AA passes).

Color values

HEX#401260
RGBrgb(64, 18, 96)
HSLhsl(275, 68%, 22%)
HSVhsv(275, 81%, 38%)
CMYKcmyk(33.3%, 81.3%, 0%, 62.4%)
CIE-LABlab(17.31, 36.53, -36.53)
CIE-LCHlch(17.31, 51.66, 315.00°)
OKLaboklab(30.36% 0.078 -0.1038)
OKLCHoklch(30.36% 0.13 306.9)
XYZxyz(4.4415, 2.3672, 11.2870)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401260 #326012
analogous
#191260 #401260 #601259
triadic
#401260 #604012 #126040
tetradic
#401260 #601912 #326012 #125960
square
#401260 #601912 #326012 #125960
split-complementary
#401260 #596012 #126019
monochromatic
#11051A #1E082C #401260 #621C94 #8525C7

Accessibility & contrast

On white

14.25
#401260 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#401260 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401260
14.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401260#FFFFFF#000000##FFFFFF
##4012601.0014.251.4714.25
#FFFFFF14.251.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#3A2538
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401260;
/* rgb */ color: rgb(64, 18, 96);
/* oklch */ color: oklch(30.4% 0.130 306.9);
Tailwind
colors: {
  custom: {
    50: '#79568e',
    500: '#401260',
    950: '#000000',
  },
}
SCSS
$custom: #401260;
$custom-light: #79568e;
$custom-dark: #000000;
JSON
{
  "hex": "#401260",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 96
  },
  "hsl": {
    "h": 275.385,
    "s": 68.421,
    "l": 22.353
  },
  "oklch": {
    "l": 0.3036,
    "c": 0.12986,
    "h": 306.9
  },
  "luminance": 0.02367
}

Semantic roles & 50–950 ramp

primary
#401260
secondary
#5E9836
accent
#EB3D84
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401260

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

Preview Lab → · Contrast checker → · Palette generator →

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