#401170#401170

#401170 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.148 H 300.0°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#401170
RGBrgb(64, 17, 112)
HSLhsl(270, 74%, 25%)
HSVhsv(270, 85%, 44%)
CMYKcmyk(42.9%, 84.8%, 0%, 56.1%)
CIE-LABlab(18.63, 41.01, -44.86)
CIE-LCHlch(18.63, 60.79, 312.43°)
OKLaboklab(31.74% 0.0741 -0.1283)
OKLCHoklch(31.74% 0.148 300)
XYZxyz(5.2387, 2.6607, 15.5637)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401170 #417011
analogous
#111270 #401170 #6F1170
triadic
#401170 #704011 #117040
tetradic
#401170 #701112 #417011 #11706F
square
#401170 #701112 #417011 #11706F
split-complementary
#401170 #706F11 #127011
monochromatic
#0F041B #22093B #401170 #5E19A5 #7D21DA

Accessibility & contrast

On white

13.71
#401170 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#401170 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401170
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401170#FFFFFF#000000##FFFFFF
##4011701.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D73
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#352C41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #401170;
/* rgb */ color: rgb(64, 17, 112);
/* oklch */ color: oklch(31.7% 0.148 300.0);
Tailwind
colors: {
  custom: {
    50: '#7b569a',
    500: '#401170',
    950: '#000000',
  },
}
SCSS
$custom: #401170;
$custom-light: #7b569a;
$custom-dark: #000000;
JSON
{
  "hex": "#401170",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 112
  },
  "hsl": {
    "h": 269.684,
    "s": 73.643,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31738,
    "c": 0.14819,
    "h": 300
  },
  "luminance": 0.02661
}

Semantic roles & 50–950 ramp

primary
#401170
secondary
#6FA735
accent
#F03795
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401170

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

Preview Lab → · Contrast checker → · Palette generator →

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