#40135A#40135A

#40135A is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.122 H 309.8°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#40135A
RGBrgb(64, 19, 90)
HSLhsl(278, 65%, 21%)
HSVhsv(278, 79%, 35%)
CMYKcmyk(28.9%, 78.9%, 0%, 64.7%)
CIE-LABlab(16.96, 34.59, -33.08)
CIE-LCHlch(16.96, 47.87, 316.28°)
OKLaboklab(29.96% 0.0782 -0.0937)
OKLCHoklch(29.96% 0.122 309.8)
XYZxyz(4.1923, 2.2940, 9.8928)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40135A #2D5A13
analogous
#1D135A #40135A #5A1351
triadic
#40135A #5A4013 #135A40
tetradic
#40135A #5A1D13 #2D5A13 #13515A
square
#40135A #5A1D13 #2D5A13 #13515A
split-complementary
#40135A #515A13 #135A1D
monochromatic
#120519 #1C0827 #40135A #641E8D #8828BF

Accessibility & contrast

On white

14.40
#40135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#40135A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40135A
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40135A#FFFFFF#000000##FFFFFF
##40135A1.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285C
Deuteranopia (green-blind)
#042A58
Tritanopia (blue-blind)
#3C2335
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #40135a;
/* rgb */ color: rgb(64, 19, 90);
/* oklch */ color: oklch(30.0% 0.122 309.8);
Tailwind
colors: {
  custom: {
    50: '#785689',
    500: '#40135a',
    950: '#000000',
  },
}
SCSS
$custom: #40135a;
$custom-light: #785689;
$custom-dark: #000000;
JSON
{
  "hex": "#40135a",
  "rgb": {
    "r": 64,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 278.028,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29957,
    "c": 0.12208,
    "h": 309.8
  },
  "luminance": 0.02294
}

Semantic roles & 50–950 ramp

primary
#40135A
secondary
#589237
accent
#E8407D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030B
muted
#7B787C

Preview Lab

Preview with #40135A

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

Preview Lab → · Contrast checker → · Palette generator →

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