#40196A#40196A

#40196A is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.133 H 301.1°. Best body text is #FFFFFF at 13.42:1 contrast (WCAG AA passes).

Color values

HEX#40196A
RGBrgb(64, 25, 106)
HSLhsl(269, 62%, 26%)
HSVhsv(269, 76%, 42%)
CMYKcmyk(39.6%, 76.4%, 0%, 58.4%)
CIE-LABlab(19.33, 35.84, -39.81)
CIE-LCHlch(19.33, 53.57, 311.99°)
OKLaboklab(32.06% 0.0684 -0.1136)
OKLCHoklch(32.06% 0.133 301.1)
XYZxyz(5.0629, 2.8258, 13.9116)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40196A #436A19
analogous
#191A6A #40196A #68196A
triadic
#40196A #6A4019 #196A40
tetradic
#40196A #6A191A #436A19 #196A68
square
#40196A #6A191A #436A19 #196A68
split-complementary
#40196A #6A6819 #1A6A19
monochromatic
#0F0619 #220D38 #40196A #5E259C #7C30CD

Accessibility & contrast

On white

13.42
#40196A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#40196A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #40196A
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40196A#FFFFFF#000000##FFFFFF
##40196A1.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002E68
Tritanopia (blue-blind)
#372D40
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #40196a;
/* rgb */ color: rgb(64, 25, 106);
/* oklch */ color: oklch(32.1% 0.133 301.1);
Tailwind
colors: {
  custom: {
    50: '#795a95',
    500: '#40196a',
    950: '#000000',
  },
}
SCSS
$custom: #40196a;
$custom-light: #795a95;
$custom-dark: #000000;
JSON
{
  "hex": "#40196a",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 106
  },
  "hsl": {
    "h": 268.889,
    "s": 61.832,
    "l": 25.686
  },
  "oklch": {
    "l": 0.3206,
    "c": 0.13259,
    "h": 301.1
  },
  "luminance": 0.02826
}

Semantic roles & 50–950 ramp

primary
#40196A
secondary
#71A03F
accent
#E54397
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #40196A

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

Preview Lab → · Contrast checker → · Palette generator →

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