#421777#421777

#421777 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.150 H 297.8°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#421777
RGBrgb(66, 23, 119)
HSLhsl(267, 68%, 28%)
HSVhsv(267, 81%, 47%)
CMYKcmyk(44.5%, 80.7%, 0%, 53.3%)
CIE-LABlab(20.45, 40.66, -46.38)
CIE-LCHlch(20.45, 61.68, 311.24°)
OKLaboklab(33.27% 0.0701 -0.1328)
OKLCHoklch(33.27% 0.15 297.8)
XYZxyz(5.8821, 3.1028, 17.7382)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421777 #4C7717
analogous
#171C77 #421777 #721777
triadic
#421777 #774217 #177742
tetradic
#421777 #77171C #4C7717 #177772
square
#421777 #77171C #4C7717 #177772
split-complementary
#421777 #777217 #1C7717
monochromatic
#0E051A #260D44 #421777 #5E21AA #7C31D7

Accessibility & contrast

On white

12.96
#421777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#421777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421777
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421777#FFFFFF#000000##FFFFFF
##4217771.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317A
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#343147
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #421777;
/* rgb */ color: rgb(66, 23, 119);
/* oklch */ color: oklch(33.3% 0.150 297.8);
Tailwind
colors: {
  custom: {
    50: '#7c5a9f',
    500: '#421777',
    950: '#000000',
  },
}
SCSS
$custom: #421777;
$custom-light: #7c5a9f;
$custom-dark: #000000;
JSON
{
  "hex": "#421777",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 266.875,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33271,
    "c": 0.15014,
    "h": 297.8
  },
  "luminance": 0.03103
}

Semantic roles & 50–950 ramp

primary
#421777
secondary
#7BAC3E
accent
#EA3D9D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #421777

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

Preview Lab → · Contrast checker → · Palette generator →

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