#40105B#40105B

#40105B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.127 H 309.8°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).

Color values

HEX#40105B
RGBrgb(64, 16, 91)
HSLhsl(278, 70%, 21%)
HSVhsv(278, 82%, 36%)
CMYKcmyk(29.7%, 82.4%, 0%, 64.3%)
CIE-LABlab(16.58, 36.15, -34.37)
CIE-LCHlch(16.58, 49.88, 316.45°)
OKLaboklab(29.72% 0.0811 -0.0975)
OKLCHoklch(29.72% 0.127 309.8)
XYZxyz(4.1876, 2.2160, 10.1026)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40105B #2B5B10
analogous
#1A105B #40105B #5B1050
triadic
#40105B #5B4010 #105B40
tetradic
#40105B #5B1A10 #2B5B10 #10505B
square
#40105B #5B1A10 #2B5B10 #10505B
split-complementary
#40105B #505B10 #105B1A
monochromatic
#12051A #1B0727 #40105B #65198F #8922C3

Accessibility & contrast

On white

14.55
#40105B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40105B
14.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40105B#FFFFFF#000000##FFFFFF
##40105B1.0014.551.4414.55
#FFFFFF14.551.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275D
Deuteranopia (green-blind)
#002A59
Tritanopia (blue-blind)
#3C2235
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40105b;
/* rgb */ color: rgb(64, 16, 91);
/* oklch */ color: oklch(29.7% 0.127 309.8);
Tailwind
colors: {
  custom: {
    50: '#78548a',
    500: '#40105b',
    950: '#000000',
  },
}
SCSS
$custom: #40105b;
$custom-light: #78548a;
$custom-dark: #000000;
JSON
{
  "hex": "#40105b",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 91
  },
  "hsl": {
    "h": 278.4,
    "s": 70.093,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29716,
    "c": 0.12682,
    "h": 309.8
  },
  "luminance": 0.02216
}

Semantic roles & 50–950 ramp

primary
#40105B
secondary
#569433
accent
#ED3B7B
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40105B

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

Preview Lab → · Contrast checker → · Palette generator →

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