#42156C#42156C

#42156C is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.140 H 302.4°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#42156C
RGBrgb(66, 21, 108)
HSLhsl(271, 67%, 25%)
HSVhsv(271, 81%, 42%)
CMYKcmyk(38.9%, 80.6%, 0%, 57.6%)
CIE-LABlab(19.13, 38.65, -41.44)
CIE-LCHlch(19.13, 56.67, 313.01°)
OKLaboklab(32.03% 0.0751 -0.1182)
OKLCHoklch(32.03% 0.14 302.4)
XYZxyz(5.2211, 2.7773, 14.4455)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42156C #3F6C15
analogous
#16156C #42156C #6C156B
triadic
#42156C #6C4215 #156C42
tetradic
#42156C #6C1615 #3F6C15 #156B6C
square
#42156C #6C1615 #3F6C15 #156B6C
split-complementary
#42156C #6B6C15 #156C16
monochromatic
#10051A #230B39 #42156C #611F9F #8129D2

Accessibility & contrast

On white

13.50
#42156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#42156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42156C
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42156C#FFFFFF#000000##FFFFFF
##42156C1.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6E
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#392C40
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #42156c;
/* rgb */ color: rgb(66, 21, 108);
/* oklch */ color: oklch(32.0% 0.140 302.4);
Tailwind
colors: {
  custom: {
    50: '#7b5897',
    500: '#42156c',
    950: '#000000',
  },
}
SCSS
$custom: #42156c;
$custom-light: #7b5897;
$custom-dark: #000000;
JSON
{
  "hex": "#42156c",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 271.034,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32033,
    "c": 0.14006,
    "h": 302.4
  },
  "luminance": 0.02777
}

Semantic roles & 50–950 ramp

primary
#42156C
secondary
#6DA33A
accent
#EA3D91
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #42156C

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

Preview Lab → · Contrast checker → · Palette generator →

#42156C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva