#40105F#40105F

#40105F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.131 H 307.7°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#40105F
RGBrgb(64, 16, 95)
HSLhsl(276, 71%, 22%)
HSVhsv(276, 83%, 37%)
CMYKcmyk(32.6%, 83.2%, 0%, 62.7%)
CIE-LABlab(16.93, 37.13, -36.48)
CIE-LCHlch(16.93, 52.05, 315.51°)
OKLaboklab(30.07% 0.0801 -0.1037)
OKLCHoklch(30.07% 0.131 307.7)
XYZxyz(4.3648, 2.2869, 11.0357)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40105F #2F5F10
analogous
#19105F #40105F #5F1057
triadic
#40105F #5F4010 #105F40
tetradic
#40105F #5F1910 #2F5F10 #10575F
square
#40105F #5F1910 #2F5F10 #10575F
split-complementary
#40105F #575F10 #105F19
monochromatic
#12041A #1D072B #40105F #631993 #8722C8

Accessibility & contrast

On white

14.41
#40105F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#40105F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40105F
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40105F#FFFFFF#000000##FFFFFF
##40105F1.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002861
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#3B2437
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40105f;
/* rgb */ color: rgb(64, 16, 95);
/* oklch */ color: oklch(30.1% 0.131 307.7);
Tailwind
colors: {
  custom: {
    50: '#79558d',
    500: '#40105f',
    950: '#000000',
  },
}
SCSS
$custom: #40105f;
$custom-light: #79558d;
$custom-dark: #000000;
JSON
{
  "hex": "#40105f",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 95
  },
  "hsl": {
    "h": 276.456,
    "s": 71.171,
    "l": 21.765
  },
  "oklch": {
    "l": 0.30065,
    "c": 0.13105,
    "h": 307.7
  },
  "luminance": 0.02287
}

Semantic roles & 50–950 ramp

primary
#40105F
secondary
#5B9833
accent
#EE3A81
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40105F

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

Preview Lab → · Contrast checker → · Palette generator →

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