#401174#401174

#401174 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.152 H 298.5°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#401174
RGBrgb(64, 17, 116)
HSLhsl(268, 74%, 26%)
HSVhsv(268, 85%, 45%)
CMYKcmyk(44.8%, 85.3%, 0%, 54.5%)
CIE-LABlab(19.02, 42.05, -46.81)
CIE-LCHlch(19.02, 62.92, 311.93°)
OKLaboklab(32.13% 0.0727 -0.134)
OKLCHoklch(32.13% 0.152 298.5)
XYZxyz(5.4664, 2.7518, 16.7628)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#401174 #457411
analogous
#111374 #401174 #711174
triadic
#401174 #744011 #117440
tetradic
#401174 #741113 #457411 #117471
square
#401174 #741113 #457411 #117471
split-complementary
#401174 #747111 #137411
monochromatic
#0F041B #23093F #401174 #5D19A9 #7B21DE

Accessibility & contrast

On white

13.54
#401174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#401174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #401174
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##401174#FFFFFF#000000##FFFFFF
##4011741.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#332E44
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #401174;
/* rgb */ color: rgb(64, 17, 116);
/* oklch */ color: oklch(32.1% 0.152 298.5);
Tailwind
colors: {
  custom: {
    50: '#7b569d',
    500: '#401174',
    950: '#000000',
  },
}
SCSS
$custom: #401174;
$custom-light: #7b569d;
$custom-dark: #000000;
JSON
{
  "hex": "#401174",
  "rgb": {
    "r": 64,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 268.485,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32128,
    "c": 0.15248,
    "h": 298.5
  },
  "luminance": 0.02752
}

Semantic roles & 50–950 ramp

primary
#401174
secondary
#73AB36
accent
#F13799
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #401174

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

Preview Lab → · Contrast checker → · Palette generator →

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