#421B74#421B74

#421B74 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.142 H 298.2°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#421B74
RGBrgb(66, 27, 116)
HSLhsl(266, 62%, 28%)
HSVhsv(266, 77%, 45%)
CMYKcmyk(43.1%, 76.7%, 0%, 54.5%)
CIE-LABlab(20.84, 37.95, -43.82)
CIE-LCHlch(20.84, 57.97, 310.89°)
OKLaboklab(33.46% 0.0672 -0.1253)
OKLCHoklch(33.46% 0.142 298.2)
XYZxyz(5.7903, 3.2030, 16.8328)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B74 #4D741B
analogous
#1B2074 #421B74 #6E1B74
triadic
#421B74 #74421B #1B7442
tetradic
#421B74 #741B20 #4D741B #1B746E
square
#421B74 #741B20 #4D741B #1B746E
split-complementary
#421B74 #746E1B #20741B
monochromatic
#0E0619 #260F42 #421B74 #5E27A6 #7B39D1

Accessibility & contrast

On white

12.80
#421B74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#421B74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B74
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B74#FFFFFF#000000##FFFFFF
##421B741.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003277
Deuteranopia (green-blind)
#003172
Tritanopia (blue-blind)
#363246
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #421b74;
/* rgb */ color: rgb(66, 27, 116);
/* oklch */ color: oklch(33.5% 0.142 298.2);
Tailwind
colors: {
  custom: {
    50: '#7c5b9d',
    500: '#421b74',
    950: '#000000',
  },
}
SCSS
$custom: #421b74;
$custom-light: #7c5b9d;
$custom-dark: #000000;
JSON
{
  "hex": "#421b74",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 266.292,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.33459,
    "c": 0.14217,
    "h": 298.2
  },
  "luminance": 0.03203
}

Semantic roles & 50–950 ramp

primary
#421B74
secondary
#7CA942
accent
#E5429E
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #421B74

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

Preview Lab → · Contrast checker → · Palette generator →

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