#40106A#40106A

#40106A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.143 H 302.6°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#40106A
RGBrgb(64, 16, 106)
HSLhsl(272, 74%, 24%)
HSVhsv(272, 85%, 42%)
CMYKcmyk(39.6%, 84.9%, 0%, 58.4%)
CIE-LABlab(17.92, 39.87, -42.11)
CIE-LCHlch(17.92, 57.99, 313.43°)
OKLaboklab(31.07% 0.0769 -0.1202)
OKLCHoklch(31.07% 0.143 302.6)
XYZxyz(4.9005, 2.5012, 13.8575)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40106A #3A6A10
analogous
#13106A #40106A #6A1067
triadic
#40106A #6A4010 #106A40
tetradic
#40106A #6A1310 #3A6A10 #10676A
square
#40106A #6A1310 #3A6A10 #10676A
split-complementary
#40106A #676A10 #106A13
monochromatic
#10041B #200835 #40106A #60189F #8020D4

Accessibility & contrast

On white

14.00
#40106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#40106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40106A
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40106A#FFFFFF#000000##FFFFFF
##40106A1.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #40106a;
/* rgb */ color: rgb(64, 16, 106);
/* oklch */ color: oklch(31.1% 0.143 302.6);
Tailwind
colors: {
  custom: {
    50: '#7a5595',
    500: '#40106a',
    950: '#000000',
  },
}
SCSS
$custom: #40106a;
$custom-light: #7a5595;
$custom-dark: #000000;
JSON
{
  "hex": "#40106a",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 272,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31071,
    "c": 0.14274,
    "h": 302.6
  },
  "luminance": 0.02501
}

Semantic roles & 50–950 ramp

primary
#40106A
secondary
#67A234
accent
#F0378E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #40106A

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

Preview Lab → · Contrast checker → · Palette generator →

#40106A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva