#42186A#42186A

#42186A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.134 H 302.7°. Best body text is #FFFFFF at 13.37:1 contrast (WCAG AA passes).

Color values

HEX#42186A
RGBrgb(66, 24, 106)
HSLhsl(271, 63%, 25%)
HSVhsv(271, 77%, 42%)
CMYKcmyk(37.7%, 77.4%, 0%, 58.4%)
CIE-LABlab(19.44, 36.73, -39.62)
CIE-LCHlch(19.44, 54.03, 312.83°)
OKLaboklab(32.2% 0.0726 -0.1129)
OKLCHoklch(32.2% 0.134 302.7)
XYZxyz(5.1743, 2.8521, 13.9108)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42186A #406A18
analogous
#19186A #42186A #6A1869
triadic
#42186A #6A4218 #186A42
tetradic
#42186A #6A1918 #406A18 #18696A
square
#42186A #6A1918 #406A18 #18696A
split-complementary
#42186A #696A18 #186A19
monochromatic
#100619 #230D38 #42186A #61239C #802FCE

Accessibility & contrast

On white

13.37
#42186A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42186A
13.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42186A#FFFFFF#000000##FFFFFF
##42186A1.0013.371.5713.37
#FFFFFF13.371.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002F68
Tritanopia (blue-blind)
#3A2C3F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42186a;
/* rgb */ color: rgb(66, 24, 106);
/* oklch */ color: oklch(32.2% 0.134 302.7);
Tailwind
colors: {
  custom: {
    50: '#7b5995',
    500: '#42186a',
    950: '#000000',
  },
}
SCSS
$custom: #42186a;
$custom-light: #7b5995;
$custom-dark: #000000;
JSON
{
  "hex": "#42186a",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 106
  },
  "hsl": {
    "h": 270.732,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32199,
    "c": 0.13425,
    "h": 302.7
  },
  "luminance": 0.02852
}

Semantic roles & 50–950 ramp

primary
#42186A
secondary
#6EA03E
accent
#E64292
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040D
muted
#7C797E

Preview Lab

Preview with #42186A

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

Preview Lab → · Contrast checker → · Palette generator →

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