#42156F#42156F

#42156F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.143 H 301.2°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#42156F
RGBrgb(66, 21, 111)
HSLhsl(270, 68%, 26%)
HSVhsv(270, 81%, 44%)
CMYKcmyk(40.5%, 81.1%, 0%, 56.5%)
CIE-LABlab(19.40, 39.43, -42.94)
CIE-LCHlch(19.40, 58.30, 312.56°)
OKLaboklab(32.31% 0.0743 -0.1227)
OKLCHoklch(32.31% 0.143 301.2)
XYZxyz(5.3835, 2.8422, 15.3008)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42156F #426F15
analogous
#15156F #42156F #6F156F
triadic
#42156F #6F4215 #156F42
tetradic
#42156F #6F1515 #426F15 #156F6F
square
#42156F #6F1515 #426F15 #156F6F
split-complementary
#42156F #6F6F15 #156F15
monochromatic
#0F051A #230B3C #42156F #611FA2 #7F28D6

Accessibility & contrast

On white

13.39
#42156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#42156F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #42156F
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42156F#FFFFFF#000000##FFFFFF
##42156F1.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #42156f;
/* rgb */ color: rgb(66, 21, 111);
/* oklch */ color: oklch(32.3% 0.143 301.2);
Tailwind
colors: {
  custom: {
    50: '#7b5899',
    500: '#42156f',
    950: '#000000',
  },
}
SCSS
$custom: #42156f;
$custom-light: #7b5899;
$custom-dark: #000000;
JSON
{
  "hex": "#42156f",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 270,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32308,
    "c": 0.14338,
    "h": 301.2
  },
  "luminance": 0.02842
}

Semantic roles & 50–950 ramp

primary
#42156F
secondary
#70A53A
accent
#EB3D94
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42156F

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

Preview Lab → · Contrast checker → · Palette generator →

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