#42156D#42156D

#42156D is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.141 H 302.0°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#42156D
RGBrgb(66, 21, 109)
HSLhsl(271, 68%, 25%)
HSVhsv(271, 81%, 43%)
CMYKcmyk(39.4%, 80.7%, 0%, 57.3%)
CIE-LABlab(19.22, 38.91, -41.94)
CIE-LCHlch(19.22, 57.21, 312.85°)
OKLaboklab(32.12% 0.0748 -0.1197)
OKLCHoklch(32.12% 0.141 302)
XYZxyz(5.2746, 2.7987, 14.7273)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42156D #406D15
analogous
#16156D #42156D #6D156C
triadic
#42156D #6D4215 #156D42
tetradic
#42156D #6D1615 #406D15 #156C6D
square
#42156D #6D1615 #406D15 #156C6D
split-complementary
#42156D #6C6D15 #156D16
monochromatic
#10051A #230B3A #42156D #611FA0 #8029D4

Accessibility & contrast

On white

13.46
#42156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42156D
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42156D#FFFFFF#000000##FFFFFF
##42156D1.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6F
Deuteranopia (green-blind)
#002E6B
Tritanopia (blue-blind)
#392C40
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42156d;
/* rgb */ color: rgb(66, 21, 109);
/* oklch */ color: oklch(32.1% 0.141 302.0);
Tailwind
colors: {
  custom: {
    50: '#7b5898',
    500: '#42156d',
    950: '#000000',
  },
}
SCSS
$custom: #42156d;
$custom-light: #7b5898;
$custom-dark: #000000;
JSON
{
  "hex": "#42156d",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 270.682,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32124,
    "c": 0.14116,
    "h": 302
  },
  "luminance": 0.02799
}

Semantic roles & 50–950 ramp

primary
#42156D
secondary
#6EA33A
accent
#EB3D92
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42156D

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

Preview Lab → · Contrast checker → · Palette generator →

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