#421778#421778

#421778 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.151 H 297.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).

Color values

HEX#421778
RGBrgb(66, 23, 120)
HSLhsl(267, 68%, 28%)
HSVhsv(267, 81%, 47%)
CMYKcmyk(45%, 80.8%, 0%, 52.9%)
CIE-LABlab(20.55, 40.92, -46.87)
CIE-LCHlch(20.55, 62.22, 311.12°)
OKLaboklab(33.37% 0.0698 -0.1342)
OKLCHoklch(33.37% 0.151 297.5)
XYZxyz(5.9424, 3.1270, 18.0561)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421778 #4D7817
analogous
#171C78 #421778 #721778
triadic
#421778 #784217 #177842
tetradic
#421778 #78171C #4D7817 #177872
square
#421778 #78171C #4D7817 #177872
split-complementary
#421778 #787217 #1C7817
monochromatic
#0E051A #260D45 #421778 #5E21AB #7B32D8

Accessibility & contrast

On white

12.92
#421778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#421778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421778
12.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421778#FFFFFF#000000##FFFFFF
##4217781.0012.921.6312.92
#FFFFFF12.921.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#003076
Tritanopia (blue-blind)
#343247
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #421778;
/* rgb */ color: rgb(66, 23, 120);
/* oklch */ color: oklch(33.4% 0.151 297.5);
Tailwind
colors: {
  custom: {
    50: '#7c5aa0',
    500: '#421778',
    950: '#000000',
  },
}
SCSS
$custom: #421778;
$custom-light: #7c5aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#421778",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 266.598,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33366,
    "c": 0.15127,
    "h": 297.5
  },
  "luminance": 0.03127
}

Semantic roles & 50–950 ramp

primary
#421778
secondary
#7CAD3E
accent
#EB3D9E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #421778

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

Preview Lab → · Contrast checker → · Palette generator →

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