#401975#401975

#401975 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.145 H 296.9°. Best body text is #FFFFFF at 13.01:1 contrast (WCAG AA passes).

Color values

HEX#401975
RGBrgb(64, 25, 117)
HSLhsl(265, 65%, 28%)
HSVhsv(265, 79%, 46%)
CMYKcmyk(45.3%, 78.6%, 0%, 54.1%)
CIE-LABlab(20.32, 38.84, -45.33)
CIE-LCHlch(20.32, 59.69, 310.59°)
OKLaboklab(33.06% 0.0657 -0.1298)
OKLCHoklch(33.06% 0.145 296.9)
XYZxyz(5.6720, 3.0695, 17.1198)
Luminance0.0307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401975 #4E7519
analogous
#192075 #401975 #6E1975
triadic
#401975 #754019 #197540
tetradic
#401975 #751920 #4E7519 #19756E
square
#401975 #751920 #4E7519 #19756E
split-complementary
#401975 #756E19 #207519
monochromatic
#0E0519 #240E43 #401975 #5C24A7 #7835D4

Accessibility & contrast

On white

13.01
#401975 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#401975 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401975
13.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401975#FFFFFF#000000##FFFFFF
##4019751.0013.011.6113.01
#FFFFFF13.011.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#003073
Tritanopia (blue-blind)
#323146
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #401975;
/* rgb */ color: rgb(64, 25, 117);
/* oklch */ color: oklch(33.1% 0.145 296.9);
Tailwind
colors: {
  custom: {
    50: '#7b5a9e',
    500: '#401975',
    950: '#000000',
  },
}
SCSS
$custom: #401975;
$custom-light: #7b5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#401975",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 117
  },
  "hsl": {
    "h": 265.435,
    "s": 64.789,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33062,
    "c": 0.14544,
    "h": 296.9
  },
  "luminance": 0.0307
}

Semantic roles & 50–950 ramp

primary
#401975
secondary
#7DAA40
accent
#E840A1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #401975

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

Preview Lab → · Contrast checker → · Palette generator →

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