#421B77#421B77

#421B77 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.146 H 297.1°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#421B77
RGBrgb(66, 27, 119)
HSLhsl(265, 63%, 29%)
HSVhsv(265, 77%, 47%)
CMYKcmyk(44.5%, 77.3%, 0%, 53.3%)
CIE-LABlab(21.11, 38.77, -45.31)
CIE-LCHlch(21.11, 59.63, 310.56°)
OKLaboklab(33.73% 0.0665 -0.1296)
OKLCHoklch(33.73% 0.146 297.1)
XYZxyz(5.9676, 3.2739, 17.7667)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B77 #50771B
analogous
#1B2277 #421B77 #701B77
triadic
#421B77 #77421B #1B7742
tetradic
#421B77 #771B22 #50771B #1B7770
square
#421B77 #771B22 #50771B #1B7770
split-complementary
#421B77 #77701B #22771B
monochromatic
#0E0619 #261045 #421B77 #5E26A9 #7B3AD2

Accessibility & contrast

On white

12.69
#421B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#421B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B77
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B77#FFFFFF#000000##FFFFFF
##421B771.0012.691.6512.69
#FFFFFF12.691.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337A
Deuteranopia (green-blind)
#003275
Tritanopia (blue-blind)
#343347
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #421b77;
/* rgb */ color: rgb(66, 27, 119);
/* oklch */ color: oklch(33.7% 0.146 297.1);
Tailwind
colors: {
  custom: {
    50: '#7c5c9f',
    500: '#421b77',
    950: '#000000',
  },
}
SCSS
$custom: #421b77;
$custom-light: #7c5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#421b77",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 119
  },
  "hsl": {
    "h": 265.435,
    "s": 63.014,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33733,
    "c": 0.14569,
    "h": 297.1
  },
  "luminance": 0.03274
}

Semantic roles & 50–950 ramp

primary
#421B77
secondary
#7FAB42
accent
#E642A0
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040F
muted
#7C797E

Preview Lab

Preview with #421B77

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

Preview Lab → · Contrast checker → · Palette generator →

#421B77 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva