#42106A#42106A

#42106A is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.143 H 304.0°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#42106A
RGBrgb(66, 16, 106)
HSLhsl(273, 74%, 24%)
HSVhsv(273, 85%, 42%)
CMYKcmyk(37.7%, 84.9%, 0%, 58.4%)
CIE-LABlab(18.23, 40.22, -41.60)
CIE-LCHlch(18.23, 57.86, 314.03°)
OKLaboklab(31.35% 0.0801 -0.1187)
OKLCHoklch(31.35% 0.143 304)
XYZxyz(5.0330, 2.5695, 13.8637)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42106A #386A10
analogous
#15106A #42106A #6A1065
triadic
#42106A #6A4210 #106A42
tetradic
#42106A #6A1510 #386A10 #10656A
square
#42106A #6A1510 #386A10 #10656A
split-complementary
#42106A #656A10 #106A15
monochromatic
#11041B #210835 #42106A #63189F #8420D4

Accessibility & contrast

On white

13.87
#42106A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#42106A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42106A
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42106A#FFFFFF#000000##FFFFFF
##42106A1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#3A293E
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #42106a;
/* rgb */ color: rgb(66, 16, 106);
/* oklch */ color: oklch(31.3% 0.143 304.0);
Tailwind
colors: {
  custom: {
    50: '#7b5695',
    500: '#42106a',
    950: '#000000',
  },
}
SCSS
$custom: #42106a;
$custom-light: #7b5695;
$custom-dark: #000000;
JSON
{
  "hex": "#42106a",
  "rgb": {
    "r": 66,
    "g": 16,
    "b": 106
  },
  "hsl": {
    "h": 273.333,
    "s": 73.77,
    "l": 23.922
  },
  "oklch": {
    "l": 0.31349,
    "c": 0.14316,
    "h": 304
  },
  "luminance": 0.02569
}

Semantic roles & 50–950 ramp

primary
#42106A
secondary
#65A234
accent
#F0378A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #42106A

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

Preview Lab → · Contrast checker → · Palette generator →

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