#42186E#42186E

#42186E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.139 H 301.1°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#42186E
RGBrgb(66, 24, 110)
HSLhsl(269, 64%, 26%)
HSVhsv(269, 78%, 43%)
CMYKcmyk(40%, 78.2%, 0%, 56.9%)
CIE-LABlab(19.79, 37.79, -41.66)
CIE-LCHlch(19.79, 56.25, 312.21°)
OKLaboklab(32.55% 0.0717 -0.1189)
OKLCHoklch(32.55% 0.139 301.1)
XYZxyz(5.3872, 2.9373, 15.0320)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42186E #446E18
analogous
#18196E #42186E #6D186E
triadic
#42186E #6E4218 #186E42
tetradic
#42186E #6E1819 #446E18 #186E6D
square
#42186E #6E1819 #446E18 #186E6D
split-complementary
#42186E #6E6D18 #196E18
monochromatic
#0F0519 #240D3C #42186E #6023A0 #7E2FD2

Accessibility & contrast

On white

13.23
#42186E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42186E
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42186E#FFFFFF#000000##FFFFFF
##42186E1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42186e;
/* rgb */ color: rgb(66, 24, 110);
/* oklch */ color: oklch(32.6% 0.139 301.1);
Tailwind
colors: {
  custom: {
    50: '#7b5a98',
    500: '#42186e',
    950: '#000000',
  },
}
SCSS
$custom: #42186e;
$custom-light: #7b5a98;
$custom-dark: #000000;
JSON
{
  "hex": "#42186e",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 110
  },
  "hsl": {
    "h": 269.302,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32554,
    "c": 0.13882,
    "h": 301.1
  },
  "luminance": 0.02937
}

Semantic roles & 50–950 ramp

primary
#42186E
secondary
#72A43E
accent
#E74196
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42186E

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

Preview Lab → · Contrast checker → · Palette generator →

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