#40196C#40196C

#40196C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.135 H 300.2°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#40196C
RGBrgb(64, 25, 108)
HSLhsl(268, 62%, 26%)
HSVhsv(268, 77%, 42%)
CMYKcmyk(40.7%, 76.9%, 0%, 57.6%)
CIE-LABlab(19.51, 36.38, -40.83)
CIE-LCHlch(19.51, 54.69, 311.70°)
OKLaboklab(32.24% 0.068 -0.1166)
OKLCHoklch(32.24% 0.135 300.2)
XYZxyz(5.1681, 2.8679, 14.4657)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#40196C #456C19
analogous
#191B6C #40196C #69196C
triadic
#40196C #6C4019 #196C40
tetradic
#40196C #6C191B #456C19 #196C69
square
#40196C #6C191B #456C19 #196C69
split-complementary
#40196C #6C6919 #1B6C19
monochromatic
#0F0619 #230D3A #40196C #5D259E #7B30CF

Accessibility & contrast

On white

13.35
#40196C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #40196C
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##40196C#FFFFFF#000000##FFFFFF
##40196C1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#362E41
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #40196c;
/* rgb */ color: rgb(64, 25, 108);
/* oklch */ color: oklch(32.2% 0.135 300.2);
Tailwind
colors: {
  custom: {
    50: '#7a5a97',
    500: '#40196c',
    950: '#000000',
  },
}
SCSS
$custom: #40196c;
$custom-light: #7a5a97;
$custom-dark: #000000;
JSON
{
  "hex": "#40196c",
  "rgb": {
    "r": 64,
    "g": 25,
    "b": 108
  },
  "hsl": {
    "h": 268.193,
    "s": 62.406,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32238,
    "c": 0.13493,
    "h": 300.2
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#40196C
secondary
#73A13F
accent
#E54299
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #40196C

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

Preview Lab → · Contrast checker → · Palette generator →

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