#400F76#400F76

#400F76 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.2% C 0.156 H 298.0°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#400F76
RGBrgb(64, 15, 118)
HSLhsl(269, 77%, 26%)
HSVhsv(269, 87%, 46%)
CMYKcmyk(45.8%, 87.3%, 0%, 53.7%)
CIE-LABlab(18.97, 43.30, -48.18)
CIE-LCHlch(18.97, 64.78, 311.95°)
OKLaboklab(32.15% 0.0734 -0.138)
OKLCHoklch(32.15% 0.156 298)
XYZxyz(5.5543, 2.7395, 17.3722)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F76 #45760F
analogous
#0F1176 #400F76 #730F76
triadic
#400F76 #76400F #0F7640
tetradic
#400F76 #760F11 #45760F #0F7673
square
#400F76 #760F11 #45760F #0F7673
split-complementary
#400F76 #76730F #11760F
monochromatic
#0F031B #230840 #400F76 #5D16AC #7B1DE2

Accessibility & contrast

On white

13.57
#400F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#400F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F76
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F76#FFFFFF#000000##FFFFFF
##400F761.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#322E44
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #400f76;
/* rgb */ color: rgb(64, 15, 118);
/* oklch */ color: oklch(32.2% 0.156 298.0);
Tailwind
colors: {
  custom: {
    50: '#7b569e',
    500: '#400f76',
    950: '#000000',
  },
}
SCSS
$custom: #400f76;
$custom-light: #7b569e;
$custom-dark: #000000;
JSON
{
  "hex": "#400f76",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 118
  },
  "hsl": {
    "h": 268.544,
    "s": 77.444,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32153,
    "c": 0.15633,
    "h": 298
  },
  "luminance": 0.0274
}

Semantic roles & 50–950 ramp

primary
#400F76
secondary
#73AD33
accent
#F43499
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #400F76

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

Preview Lab → · Contrast checker → · Palette generator →

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