#42146A#42146A

#42146A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.139 H 303.4°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#42146A
RGBrgb(66, 20, 106)
HSLhsl(272, 68%, 25%)
HSVhsv(272, 81%, 42%)
CMYKcmyk(37.7%, 81.1%, 0%, 58.4%)
CIE-LABlab(18.80, 38.58, -40.67)
CIE-LCHlch(18.80, 56.06, 313.48°)
OKLaboklab(31.75% 0.0766 -0.116)
OKLCHoklch(31.75% 0.139 303.4)
XYZxyz(5.0978, 2.6992, 13.8853)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42146A #3C6A14
analogous
#17146A #42146A #6A1467
triadic
#42146A #6A4214 #146A42
tetradic
#42146A #6A1714 #3C6A14 #14676A
square
#42146A #6A1714 #3C6A14 #14676A
split-complementary
#42146A #676A14 #146A17
monochromatic
#10051A #220A37 #42146A #621E9D #8227D1

Accessibility & contrast

On white

13.64
#42146A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#42146A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42146A
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42146A#FFFFFF#000000##FFFFFF
##42146A1.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6C
Deuteranopia (green-blind)
#002E68
Tritanopia (blue-blind)
#3A2A3E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #42146a;
/* rgb */ color: rgb(66, 20, 106);
/* oklch */ color: oklch(31.7% 0.139 303.4);
Tailwind
colors: {
  custom: {
    50: '#7b5795',
    500: '#42146a',
    950: '#000000',
  },
}
SCSS
$custom: #42146a;
$custom-light: #7b5795;
$custom-dark: #000000;
JSON
{
  "hex": "#42146a",
  "rgb": {
    "r": 66,
    "g": 20,
    "b": 106
  },
  "hsl": {
    "h": 272.093,
    "s": 68.254,
    "l": 24.706
  },
  "oklch": {
    "l": 0.31745,
    "c": 0.13898,
    "h": 303.4
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#42146A
secondary
#69A139
accent
#EB3D8E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #42146A

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

Preview Lab → · Contrast checker → · Palette generator →

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