#401275#401275

#401275 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.153 H 298.0°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#401275
RGBrgb(64, 18, 117)
HSLhsl(268, 73%, 26%)
HSVhsv(268, 85%, 46%)
CMYKcmyk(45.3%, 84.6%, 0%, 54.1%)
CIE-LABlab(19.25, 41.92, -47.07)
CIE-LCHlch(19.25, 63.03, 311.68°)
OKLaboklab(32.32% 0.0716 -0.1348)
OKLCHoklch(32.32% 0.153 298)
XYZxyz(5.5407, 2.8069, 17.0760)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401275 #477512
analogous
#121675 #401275 #721275
triadic
#401275 #754012 #127540
tetradic
#401275 #751216 #477512 #127572
square
#401275 #751216 #477512 #127572
split-complementary
#401275 #757212 #167512
monochromatic
#0F041B #230A40 #401275 #5D1AAA #7A24DD

Accessibility & contrast

On white

13.45
#401275 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #401275
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401275#FFFFFF#000000##FFFFFF
##4012751.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F78
Deuteranopia (green-blind)
#002E73
Tritanopia (blue-blind)
#322E44
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #401275;
/* rgb */ color: rgb(64, 18, 117);
/* oklch */ color: oklch(32.3% 0.153 298.0);
Tailwind
colors: {
  custom: {
    50: '#7b579e',
    500: '#401275',
    950: '#000000',
  },
}
SCSS
$custom: #401275;
$custom-light: #7b579e;
$custom-dark: #000000;
JSON
{
  "hex": "#401275",
  "rgb": {
    "r": 64,
    "g": 18,
    "b": 117
  },
  "hsl": {
    "h": 267.879,
    "s": 73.333,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32318,
    "c": 0.15265,
    "h": 298
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#401275
secondary
#76AC37
accent
#F0389A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401275

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

Preview Lab → · Contrast checker → · Palette generator →

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