#42186C#42186C

#42186C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.4% C 0.137 H 301.9°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#42186C
RGBrgb(66, 24, 108)
HSLhsl(270, 64%, 26%)
HSVhsv(270, 78%, 42%)
CMYKcmyk(38.9%, 77.8%, 0%, 57.6%)
CIE-LABlab(19.62, 37.26, -40.65)
CIE-LCHlch(19.62, 55.14, 312.51°)
OKLaboklab(32.38% 0.0722 -0.1159)
OKLCHoklch(32.38% 0.137 301.9)
XYZxyz(5.2795, 2.8942, 14.4649)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42186C #426C18
analogous
#18186C #42186C #6C186C
triadic
#42186C #6C4218 #186C42
tetradic
#42186C #6C1818 #426C18 #186C6C
square
#42186C #6C1818 #426C18 #186C6C
split-complementary
#42186C #6C6C18 #186C18
monochromatic
#0F0619 #230D3A #42186C #61239E #7F2ED0

Accessibility & contrast

On white

13.30
#42186C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#42186C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42186C
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42186C#FFFFFF#000000##FFFFFF
##42186C1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42186c;
/* rgb */ color: rgb(66, 24, 108);
/* oklch */ color: oklch(32.4% 0.137 301.9);
Tailwind
colors: {
  custom: {
    50: '#7b5997',
    500: '#42186c',
    950: '#000000',
  },
}
SCSS
$custom: #42186c;
$custom-light: #7b5997;
$custom-dark: #000000;
JSON
{
  "hex": "#42186c",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 108
  },
  "hsl": {
    "h": 270,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32375,
    "c": 0.13654,
    "h": 301.9
  },
  "luminance": 0.02894
}

Semantic roles & 50–950 ramp

primary
#42186C
secondary
#70A23E
accent
#E74194
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42186C

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

Preview Lab → · Contrast checker → · Palette generator →

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