#400F60#400F60

#400F60 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.133 H 307.3°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#400F60
RGBrgb(64, 15, 96)
HSLhsl(276, 73%, 22%)
HSVhsv(276, 84%, 38%)
CMYKcmyk(33.3%, 84.4%, 0%, 62.4%)
CIE-LABlab(16.87, 37.78, -37.23)
CIE-LCHlch(16.87, 53.04, 315.42°)
OKLaboklab(30.06% 0.0808 -0.1059)
OKLCHoklch(30.06% 0.133 307.3)
XYZxyz(4.3960, 2.2762, 11.2718)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F60 #2F600F
analogous
#170F60 #400F60 #600F58
triadic
#400F60 #60400F #0F6040
tetradic
#400F60 #60170F #2F600F #0F5860
square
#400F60 #60170F #2F600F #0F5860
split-complementary
#400F60 #58600F #0F6017
monochromatic
#12041A #1D072B #400F60 #631795 #8720CA

Accessibility & contrast

On white

14.43
#400F60 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#400F60 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F60
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F60#FFFFFF#000000##FFFFFF
##400F601.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#3B2438
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #400f60;
/* rgb */ color: rgb(64, 15, 96);
/* oklch */ color: oklch(30.1% 0.133 307.3);
Tailwind
colors: {
  custom: {
    50: '#79548e',
    500: '#400f60',
    950: '#000000',
  },
}
SCSS
$custom: #400f60;
$custom-light: #79548e;
$custom-dark: #000000;
JSON
{
  "hex": "#400f60",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 96
  },
  "hsl": {
    "h": 276.296,
    "s": 72.973,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30057,
    "c": 0.13318,
    "h": 307.3
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#400F60
secondary
#5B9932
accent
#F03881
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #400F60

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

Preview Lab → · Contrast checker → · Palette generator →

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