#42156A#42156A

#42156A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.138 H 303.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#42156A
RGBrgb(66, 21, 106)
HSLhsl(272, 67%, 25%)
HSVhsv(272, 80%, 42%)
CMYKcmyk(37.7%, 80.2%, 0%, 58.4%)
CIE-LABlab(18.95, 38.13, -40.42)
CIE-LCHlch(18.95, 55.57, 313.33°)
OKLaboklab(31.85% 0.0756 -0.1152)
OKLCHoklch(31.85% 0.138 303.3)
XYZxyz(5.1158, 2.7352, 13.8913)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42156A #3D6A15
analogous
#18156A #42156A #6A1567
triadic
#42156A #6A4215 #156A42
tetradic
#42156A #6A1815 #3D6A15 #15676A
square
#42156A #6A1815 #3D6A15 #15676A
split-complementary
#42156A #676A15 #156A18
monochromatic
#10051A #220B37 #42156A #621F9D #8229D0

Accessibility & contrast

On white

13.57
#42156A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#42156A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42156A
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42156A#FFFFFF#000000##FFFFFF
##42156A1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42156a;
/* rgb */ color: rgb(66, 21, 106);
/* oklch */ color: oklch(31.9% 0.138 303.3);
Tailwind
colors: {
  custom: {
    50: '#7b5895',
    500: '#42156a',
    950: '#000000',
  },
}
SCSS
$custom: #42156a;
$custom-light: #7b5895;
$custom-dark: #000000;
JSON
{
  "hex": "#42156a",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 106
  },
  "hsl": {
    "h": 271.765,
    "s": 66.929,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31853,
    "c": 0.13784,
    "h": 303.3
  },
  "luminance": 0.02735
}

Semantic roles & 50–950 ramp

primary
#42156A
secondary
#6AA13A
accent
#EA3E8F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030D
muted
#7C787E

Preview Lab

Preview with #42156A

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

Preview Lab → · Contrast checker → · Palette generator →

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