#400F74#400F74

#400F74 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.154 H 298.7°. Best body text is #FFFFFF at 13.65:1 contrast (WCAG AA passes).

Color values

HEX#400F74
RGBrgb(64, 15, 116)
HSLhsl(269, 77%, 26%)
HSVhsv(269, 87%, 45%)
CMYKcmyk(44.8%, 87.1%, 0%, 54.5%)
CIE-LABlab(18.77, 42.79, -47.23)
CIE-LCHlch(18.77, 63.73, 312.18°)
OKLaboklab(31.95% 0.0741 -0.1352)
OKLCHoklch(31.95% 0.154 298.7)
XYZxyz(5.4367, 2.6925, 16.7529)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F74 #43740F
analogous
#0F1074 #400F74 #720F74
triadic
#400F74 #74400F #0F7440
tetradic
#400F74 #740F10 #43740F #0F7472
square
#400F74 #740F10 #43740F #0F7472
split-complementary
#400F74 #74720F #10740F
monochromatic
#0F041B #22083E #400F74 #5E16AA #7C1DE0

Accessibility & contrast

On white

13.65
#400F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#400F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F74
13.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F74#FFFFFF#000000##FFFFFF
##400F741.0013.651.5413.65
#FFFFFF13.651.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #400f74;
/* rgb */ color: rgb(64, 15, 116);
/* oklch */ color: oklch(32.0% 0.154 298.7);
Tailwind
colors: {
  custom: {
    50: '#7b569d',
    500: '#400f74',
    950: '#000000',
  },
}
SCSS
$custom: #400f74;
$custom-light: #7b569d;
$custom-dark: #000000;
JSON
{
  "hex": "#400f74",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 116
  },
  "hsl": {
    "h": 269.109,
    "s": 77.099,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31953,
    "c": 0.15422,
    "h": 298.7
  },
  "luminance": 0.02693
}

Semantic roles & 50–950 ramp

primary
#400F74
secondary
#71AC33
accent
#F43497
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #400F74

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

Preview Lab → · Contrast checker → · Palette generator →

#400F74 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva