#40105C#40105C

#40105C is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.128 H 309.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#40105C
RGBrgb(64, 16, 92)
HSLhsl(278, 70%, 21%)
HSVhsv(278, 83%, 36%)
CMYKcmyk(30.4%, 82.6%, 0%, 63.9%)
CIE-LABlab(16.67, 36.40, -34.90)
CIE-LCHlch(16.67, 50.42, 316.20°)
OKLaboklab(29.8% 0.0809 -0.099)
OKLCHoklch(29.8% 0.128 309.2)
XYZxyz(4.2310, 2.2334, 10.3313)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40105C #2C5C10
analogous
#1A105C #40105C #5C1052
triadic
#40105C #5C4010 #105C40
tetradic
#40105C #5C1A10 #2C5C10 #10525C
square
#40105C #5C1A10 #2C5C10 #10525C
split-complementary
#40105C #525C10 #105C1A
monochromatic
#12051A #1C0728 #40105C #641990 #8922C4

Accessibility & contrast

On white

14.52
#40105C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#40105C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40105C
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40105C#FFFFFF#000000##FFFFFF
##40105C1.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#3C2336
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #40105c;
/* rgb */ color: rgb(64, 16, 92);
/* oklch */ color: oklch(29.8% 0.128 309.2);
Tailwind
colors: {
  custom: {
    50: '#78548b',
    500: '#40105c',
    950: '#000000',
  },
}
SCSS
$custom: #40105c;
$custom-light: #78548b;
$custom-dark: #000000;
JSON
{
  "hex": "#40105c",
  "rgb": {
    "r": 64,
    "g": 16,
    "b": 92
  },
  "hsl": {
    "h": 277.895,
    "s": 70.37,
    "l": 21.176
  },
  "oklch": {
    "l": 0.29803,
    "c": 0.12788,
    "h": 309.2
  },
  "luminance": 0.02233
}

Semantic roles & 50–950 ramp

primary
#40105C
secondary
#579533
accent
#ED3B7C
background
#F7F5F8
surface
#EEE9F0
border
#C9C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #40105C

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

Preview Lab → · Contrast checker → · Palette generator →

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