#40105A#40105A

#40105A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.126 H 310.3°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#40105A
RGBrgb(64, 16, 90)
HSLhsl(279, 70%, 21%)
HSVhsv(279, 82%, 35%)
CMYKcmyk(28.9%, 82.2%, 0%, 64.7%)
CIE-LABlab(16.50, 35.91, -33.83)
CIE-LCHlch(16.50, 49.34, 316.71°)
OKLaboklab(29.63% 0.0813 -0.0959)
OKLCHoklch(29.63% 0.126 310.3)
XYZxyz(4.1447, 2.1988, 9.8770)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40105A #2A5A10
analogous
#1B105A #40105A #5A104F
triadic
#40105A #5A4010 #105A40
tetradic
#40105A #5A1B10 #2A5A10 #104F5A
square
#40105A #5A1B10 #2A5A10 #104F5A
split-complementary
#40105A #4F5A10 #105A1B
monochromatic
#12051A #1B0726 #40105A #65198E #8A22C2

Accessibility & contrast

On white

14.59
#40105A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#40105A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40105A
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40105A#FFFFFF#000000##FFFFFF
##40105A1.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275C
Deuteranopia (green-blind)
#002A58
Tritanopia (blue-blind)
#3C2234
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40105a;
/* rgb */ color: rgb(64, 16, 90);
/* oklch */ color: oklch(29.6% 0.126 310.3);
Tailwind
colors: {
  custom: {
    50: '#785489',
    500: '#40105a',
    950: '#000000',
  },
}
SCSS
$custom: #40105a;
$custom-light: #785489;
$custom-dark: #000000;
JSON
{
  "hex": "#40105a",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 90
  },
  "hsl": {
    "h": 278.919,
    "s": 69.811,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29631,
    "c": 0.12577,
    "h": 310.3
  },
  "luminance": 0.02199
}

Semantic roles & 50–950 ramp

primary
#40105A
secondary
#559333
accent
#ED3B7A
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #40105A

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

Preview Lab → · Contrast checker → · Palette generator →

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