#421879#421879

#421879 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.151 H 297.0°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#421879
RGBrgb(66, 24, 121)
HSLhsl(266, 67%, 28%)
HSVhsv(266, 80%, 47%)
CMYKcmyk(45.5%, 80.2%, 0%, 52.5%)
CIE-LABlab(20.80, 40.74, -47.10)
CIE-LCHlch(20.80, 62.28, 310.86°)
OKLaboklab(33.57% 0.0686 -0.1349)
OKLCHoklch(33.57% 0.151 297)
XYZxyz(6.0237, 3.1919, 18.3842)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421879 #4F7918
analogous
#181E79 #421879 #721879
triadic
#421879 #794218 #187942
tetradic
#421879 #79181E #4F7918 #187972
square
#421879 #79181E #4F7918 #187972
split-complementary
#421879 #797218 #1E7918
monochromatic
#0E051A #260E46 #421879 #5E22AC #7B35D7

Accessibility & contrast

On white

12.82
#421879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#421879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421879
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421879#FFFFFF#000000##FFFFFF
##4218791.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#003177
Tritanopia (blue-blind)
#333248
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #421879;
/* rgb */ color: rgb(66, 24, 121);
/* oklch */ color: oklch(33.6% 0.151 297.0);
Tailwind
colors: {
  custom: {
    50: '#7d5aa1',
    500: '#421879',
    950: '#000000',
  },
}
SCSS
$custom: #421879;
$custom-light: #7d5aa1;
$custom-dark: #000000;
JSON
{
  "hex": "#421879",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 265.979,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3357,
    "c": 0.15134,
    "h": 297
  },
  "luminance": 0.03192
}

Semantic roles & 50–950 ramp

primary
#421879
secondary
#7EAE3F
accent
#EA3E9F
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421879

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

Preview Lab → · Contrast checker → · Palette generator →

#421879 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva