#421978#421978

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

Color values

HEX#421978
RGBrgb(66, 25, 120)
HSLhsl(266, 66%, 28%)
HSVhsv(266, 79%, 47%)
CMYKcmyk(45%, 79.2%, 0%, 52.9%)
CIE-LABlab(20.86, 40.01, -46.35)
CIE-LCHlch(20.86, 61.23, 310.80°)
OKLaboklab(33.59% 0.0681 -0.1327)
OKLCHoklch(33.59% 0.149 297.2)
XYZxyz(5.9837, 3.2095, 18.0699)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421978 #4F7819
analogous
#191F78 #421978 #711978
triadic
#421978 #784219 #197842
tetradic
#421978 #78191F #4F7819 #197871
square
#421978 #78191F #4F7819 #197871
split-complementary
#421978 #787119 #1F7819
monochromatic
#0E0519 #260E45 #421978 #5E24AB #7B36D5

Accessibility & contrast

On white

12.79
#421978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #421978
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421978#FFFFFF#000000##FFFFFF
##4219781.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337B
Deuteranopia (green-blind)
#003176
Tritanopia (blue-blind)
#343348
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #421978;
/* rgb */ color: rgb(66, 25, 120);
/* oklch */ color: oklch(33.6% 0.149 297.2);
Tailwind
colors: {
  custom: {
    50: '#7c5ba0',
    500: '#421978',
    950: '#000000',
  },
}
SCSS
$custom: #421978;
$custom-light: #7c5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#421978",
  "rgb": {
    "r": 66,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 265.895,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33589,
    "c": 0.14912,
    "h": 297.2
  },
  "luminance": 0.0321
}

Semantic roles & 50–950 ramp

primary
#421978
secondary
#7EAD40
accent
#E83F9F
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #421978

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

Preview Lab → · Contrast checker → · Palette generator →

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