#401261#401261

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

Color values

HEX#401261
RGBrgb(64, 18, 97)
HSLhsl(275, 69%, 23%)
HSVhsv(275, 81%, 38%)
CMYKcmyk(34%, 81.4%, 0%, 62%)
CIE-LABlab(17.39, 36.78, -37.05)
CIE-LCHlch(17.39, 52.21, 314.79°)
OKLaboklab(30.45% 0.0777 -0.1054)
OKLCHoklch(30.45% 0.131 306.4)
XYZxyz(4.4879, 2.3857, 11.5310)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401261 #336112
analogous
#191261 #401261 #61125A
triadic
#401261 #614012 #126140
tetradic
#401261 #611912 #336112 #125A61
square
#401261 #611912 #336112 #125A61
split-complementary
#401261 #5A6112 #126119
monochromatic
#11051A #1E082D #401261 #621C95 #8425C8

Accessibility & contrast

On white

14.22
#401261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#401261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401261
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401261#FFFFFF#000000##FFFFFF
##4012611.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002B5F
Tritanopia (blue-blind)
#3A2639
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #401261;
/* rgb */ color: rgb(64, 18, 97);
/* oklch */ color: oklch(30.4% 0.131 306.4);
Tailwind
colors: {
  custom: {
    50: '#79568f',
    500: '#401261',
    950: '#000000',
  },
}
SCSS
$custom: #401261;
$custom-light: #79568f;
$custom-dark: #000000;
JSON
{
  "hex": "#401261",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 274.937,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30448,
    "c": 0.13094,
    "h": 306.4
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#401261
secondary
#5F9936
accent
#EC3C85
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #401261

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

Preview Lab → · Contrast checker → · Palette generator →

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