#42186F#42186F

#42186F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.6% C 0.140 H 300.7°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#42186F
RGBrgb(66, 24, 111)
HSLhsl(269, 64%, 26%)
HSVhsv(269, 78%, 44%)
CMYKcmyk(40.5%, 78.4%, 0%, 56.5%)
CIE-LABlab(19.88, 38.06, -42.16)
CIE-LCHlch(19.88, 56.80, 312.07°)
OKLaboklab(32.64% 0.0714 -0.1204)
OKLCHoklch(32.64% 0.14 300.7)
XYZxyz(5.4419, 2.9592, 15.3203)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42186F #456F18
analogous
#18196F #42186F #6E186F
triadic
#42186F #6F4218 #186F42
tetradic
#42186F #6F1819 #456F18 #186F6E
square
#42186F #6F1819 #456F18 #186F6E
split-complementary
#42186F #6F6E18 #196F18
monochromatic
#0F0519 #240D3D #42186F #6023A1 #7E2FD2

Accessibility & contrast

On white

13.19
#42186F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#42186F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42186F
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42186F#FFFFFF#000000##FFFFFF
##42186F1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003071
Deuteranopia (green-blind)
#002F6D
Tritanopia (blue-blind)
#382E42
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #42186f;
/* rgb */ color: rgb(66, 24, 111);
/* oklch */ color: oklch(32.6% 0.140 300.7);
Tailwind
colors: {
  custom: {
    50: '#7b5a99',
    500: '#42186f',
    950: '#000000',
  },
}
SCSS
$custom: #42186f;
$custom-light: #7b5a99;
$custom-dark: #000000;
JSON
{
  "hex": "#42186f",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 111
  },
  "hsl": {
    "h": 268.966,
    "s": 64.444,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32644,
    "c": 0.13997,
    "h": 300.7
  },
  "luminance": 0.02959
}

Semantic roles & 50–950 ramp

primary
#42186F
secondary
#73A53E
accent
#E74097
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42186F

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

Preview Lab → · Contrast checker → · Palette generator →

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