#421F6F#421F6F

#421F6F is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.5% C 0.131 H 299.2°. Best body text is #FFFFFF at 12.67:1 contrast (WCAG AA passes).

Color values

HEX#421F6F
RGBrgb(66, 31, 111)
HSLhsl(266, 56%, 28%)
HSVhsv(266, 72%, 44%)
CMYKcmyk(40.5%, 72.1%, 0%, 56.5%)
CIE-LABlab(21.15, 34.47, -40.09)
CIE-LCHlch(21.15, 52.87, 310.69°)
OKLaboklab(33.55% 0.064 -0.1143)
OKLCHoklch(33.55% 0.131 299.2)
XYZxyz(5.6053, 3.2859, 15.3748)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F6F #4C6F1F
analogous
#1F246F #421F6F #6A1F6F
triadic
#421F6F #6F421F #1F6F42
tetradic
#421F6F #6F1F24 #4C6F1F #1F6F6A
square
#421F6F #6F1F24 #4C6F1F #1F6F6A
split-complementary
#421F6F #6F6A1F #246F1F
monochromatic
#0E0718 #26123F #421F6F #5E2C9F #7C3FC9

Accessibility & contrast

On white

12.67
#421F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#421F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F6F
12.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F6F#FFFFFF#000000##FFFFFF
##421F6F1.0012.671.6612.67
#FFFFFF12.671.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003371
Deuteranopia (green-blind)
#00326D
Tritanopia (blue-blind)
#383244
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #421f6f;
/* rgb */ color: rgb(66, 31, 111);
/* oklch */ color: oklch(33.5% 0.131 299.2);
Tailwind
colors: {
  custom: {
    50: '#7b5d99',
    500: '#421f6f',
    950: '#000000',
  },
}
SCSS
$custom: #421f6f;
$custom-light: #7b5d99;
$custom-dark: #000000;
JSON
{
  "hex": "#421f6f",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 111
  },
  "hsl": {
    "h": 266.25,
    "s": 56.338,
    "l": 27.843
  },
  "oklch": {
    "l": 0.33548,
    "c": 0.131,
    "h": 299.2
  },
  "luminance": 0.03286
}

Semantic roles & 50–950 ramp

primary
#421F6F
secondary
#7BA347
accent
#E0489D
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #421F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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