#42164F#42164F

#42164F is a dark, moderate purple. Relative luminance 0.023; OKLCH L 29.8% C 0.107 H 317.6°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#42164F
RGBrgb(66, 22, 79)
HSLhsl(286, 56%, 20%)
HSVhsv(286, 72%, 31%)
CMYKcmyk(16.5%, 72.2%, 0%, 69%)
CIE-LABlab(16.97, 30.99, -25.61)
CIE-LCHlch(16.97, 40.20, 320.43°)
OKLaboklab(29.77% 0.0787 -0.0718)
OKLCHoklch(29.77% 0.107 317.6)
XYZxyz(3.9448, 2.2967, 7.6311)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42164F #234F16
analogous
#26164F #42164F #4F1640
triadic
#42164F #4F4216 #164F42
tetradic
#42164F #4F2616 #234F16 #16404F
square
#42164F #4F2616 #234F16 #16404F
split-complementary
#42164F #404F16 #164F26
monochromatic
#140718 #1A091F #42164F #6A237F #9231AF

Accessibility & contrast

On white

14.39
#42164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#42164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42164F
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42164F#FFFFFF#000000##FFFFFF
##42164F1.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022751
Deuteranopia (green-blind)
#182B4E
Tritanopia (blue-blind)
#422030
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #42164f;
/* rgb */ color: rgb(66, 22, 79);
/* oklch */ color: oklch(29.8% 0.107 317.6);
Tailwind
colors: {
  custom: {
    50: '#795781',
    500: '#42164f',
    950: '#000000',
  },
}
SCSS
$custom: #42164f;
$custom-light: #795781;
$custom-dark: #000000;
JSON
{
  "hex": "#42164f",
  "rgb": {
    "r": 66,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 286.316,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.29769,
    "c": 0.10652,
    "h": 317.6
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#42164F
secondary
#4C863A
accent
#E0486B
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#09030A
muted
#7B787C

Preview Lab

Preview with #42164F

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

Preview Lab → · Contrast checker → · Palette generator →

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