#400F6A#400F6A

#400F6A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.144 H 302.7°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#400F6A
RGBrgb(64, 15, 106)
HSLhsl(272, 75%, 24%)
HSVhsv(272, 86%, 42%)
CMYKcmyk(39.6%, 85.8%, 0%, 58.4%)
CIE-LABlab(17.79, 40.26, -42.33)
CIE-LCHlch(17.79, 58.41, 313.56°)
OKLaboklab(30.98% 0.0777 -0.1209)
OKLCHoklch(30.98% 0.144 302.7)
XYZxyz(4.8861, 2.4722, 13.8526)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#400F6A #396A0F
analogous
#120F6A #400F6A #6A0F66
triadic
#400F6A #6A400F #0F6A40
tetradic
#400F6A #6A120F #396A0F #0F666A
square
#400F6A #6A120F #396A0F #0F666A
split-complementary
#400F6A #666A0F #0F6A12
monochromatic
#10041B #200734 #400F6A #6017A0 #811ED5

Accessibility & contrast

On white

14.05
#400F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#400F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #400F6A
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##400F6A#FFFFFF#000000##FFFFFF
##400F6A1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#37293D
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #400f6a;
/* rgb */ color: rgb(64, 15, 106);
/* oklch */ color: oklch(31.0% 0.144 302.7);
Tailwind
colors: {
  custom: {
    50: '#7a5595',
    500: '#400f6a',
    950: '#000000',
  },
}
SCSS
$custom: #400f6a;
$custom-light: #7a5595;
$custom-dark: #000000;
JSON
{
  "hex": "#400f6a",
  "rgb": {
    "r": 64,
    "g": 15,
    "b": 106
  },
  "hsl": {
    "h": 272.308,
    "s": 75.207,
    "l": 23.725
  },
  "oklch": {
    "l": 0.3098,
    "c": 0.14369,
    "h": 302.7
  },
  "luminance": 0.02472
}

Semantic roles & 50–950 ramp

primary
#400F6A
secondary
#66A232
accent
#F2368D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #400F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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