#421B71#421B71

#421B71 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.139 H 299.3°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#421B71
RGBrgb(66, 27, 113)
HSLhsl(267, 61%, 27%)
HSVhsv(267, 76%, 44%)
CMYKcmyk(41.6%, 76.1%, 0%, 55.7%)
CIE-LABlab(20.57, 37.13, -42.32)
CIE-LCHlch(20.57, 56.30, 311.26°)
OKLaboklab(33.19% 0.0679 -0.1209)
OKLCHoklch(33.19% 0.139 299.3)
XYZxyz(5.6186, 3.1343, 15.9285)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421B71 #4A711B
analogous
#1B1F71 #421B71 #6D1B71
triadic
#421B71 #71421B #1B7142
tetradic
#421B71 #711B1F #4A711B #1B716D
square
#421B71 #711B1F #4A711B #1B716D
split-complementary
#421B71 #716D1B #1F711B
monochromatic
#0E0619 #250F40 #421B71 #5F27A2 #7C37CF

Accessibility & contrast

On white

12.91
#421B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#421B71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421B71
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421B71#FFFFFF#000000##FFFFFF
##421B711.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#00316F
Tritanopia (blue-blind)
#373144
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #421b71;
/* rgb */ color: rgb(66, 27, 113);
/* oklch */ color: oklch(33.2% 0.139 299.3);
Tailwind
colors: {
  custom: {
    50: '#7b5b9b',
    500: '#421b71',
    950: '#000000',
  },
}
SCSS
$custom: #421b71;
$custom-light: #7b5b9b;
$custom-dark: #000000;
JSON
{
  "hex": "#421b71",
  "rgb": {
    "r": 66,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 267.209,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.33189,
    "c": 0.13864,
    "h": 299.3
  },
  "luminance": 0.03134
}

Semantic roles & 50–950 ramp

primary
#421B71
secondary
#79A642
accent
#E5439B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #421B71

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

Preview Lab → · Contrast checker → · Palette generator →

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