#42146F#42146F

#42146F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.144 H 301.3°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#42146F
RGBrgb(66, 20, 111)
HSLhsl(270, 69%, 26%)
HSVhsv(270, 82%, 44%)
CMYKcmyk(40.5%, 82%, 0%, 56.5%)
CIE-LABlab(19.25, 39.86, -43.19)
CIE-LCHlch(19.25, 58.77, 312.71°)
OKLaboklab(32.2% 0.0751 -0.1234)
OKLCHoklch(32.2% 0.144 301.3)
XYZxyz(5.3655, 2.8062, 15.2948)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42146F #416F14
analogous
#15146F #42146F #6F146E
triadic
#42146F #6F4214 #146F42
tetradic
#42146F #6F1514 #416F14 #146E6F
square
#42146F #6F1514 #416F14 #146E6F
split-complementary
#42146F #6E6F14 #146F15
monochromatic
#0F051A #230B3B #42146F #611DA3 #8027D7

Accessibility & contrast

On white

13.45
#42146F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#42146F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42146F
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42146F#FFFFFF#000000##FFFFFF
##42146F1.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#382C41
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42146f;
/* rgb */ color: rgb(66, 20, 111);
/* oklch */ color: oklch(32.2% 0.144 301.3);
Tailwind
colors: {
  custom: {
    50: '#7c5899',
    500: '#42146f',
    950: '#000000',
  },
}
SCSS
$custom: #42146f;
$custom-light: #7c5899;
$custom-dark: #000000;
JSON
{
  "hex": "#42146f",
  "rgb": {
    "r": 66,
    "g": 20,
    "b": 111
  },
  "hsl": {
    "h": 270.33,
    "s": 69.466,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32203,
    "c": 0.14445,
    "h": 301.3
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#42146F
secondary
#6FA639
accent
#EC3C93
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #42146F

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

Preview Lab → · Contrast checker → · Palette generator →

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