#42156E#42156E

#42156E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.142 H 301.6°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#42156E
RGBrgb(66, 21, 110)
HSLhsl(270, 68%, 26%)
HSVhsv(270, 81%, 43%)
CMYKcmyk(40%, 80.9%, 0%, 56.9%)
CIE-LABlab(19.31, 39.17, -42.44)
CIE-LCHlch(19.31, 57.76, 312.70°)
OKLaboklab(32.22% 0.0745 -0.1212)
OKLCHoklch(32.22% 0.142 301.6)
XYZxyz(5.3287, 2.8203, 15.0125)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#42156E #416E15
analogous
#15156E #42156E #6E156D
triadic
#42156E #6E4215 #156E42
tetradic
#42156E #6E1515 #416E15 #156D6E
square
#42156E #6E1515 #416E15 #156D6E
split-complementary
#42156E #6D6E15 #156E15
monochromatic
#0F051A #230B3B #42156E #611FA1 #8029D5

Accessibility & contrast

On white

13.43
#42156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #42156E
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##42156E#FFFFFF#000000##FFFFFF
##42156E1.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#382D41
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #42156e;
/* rgb */ color: rgb(66, 21, 110);
/* oklch */ color: oklch(32.2% 0.142 301.6);
Tailwind
colors: {
  custom: {
    50: '#7b5898',
    500: '#42156e',
    950: '#000000',
  },
}
SCSS
$custom: #42156e;
$custom-light: #7b5898;
$custom-dark: #000000;
JSON
{
  "hex": "#42156e",
  "rgb": {
    "r": 66,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 270.337,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32216,
    "c": 0.14227,
    "h": 301.6
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#42156E
secondary
#6FA43A
accent
#EB3D93
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #42156E

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

Preview Lab → · Contrast checker → · Palette generator →

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