#421F99#421F99

#421F99 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.5% C 0.181 H 287.1°. Best body text is #FFFFFF at 11.13:1 contrast (WCAG AA passes).

Color values

HEX#421F99
RGBrgb(66, 31, 153)
HSLhsl(257, 66%, 36%)
HSVhsv(257, 80%, 60%)
CMYKcmyk(56.9%, 79.7%, 0%, 40%)
CIE-LABlab(25.07, 46.44, -60.11)
CIE-LCHlch(25.07, 75.96, 307.69°)
OKLaboklab(37.51% 0.0532 -0.173)
OKLCHoklch(37.51% 0.181 287.1)
XYZxyz(8.4848, 4.4377, 30.5403)
Luminance0.0444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F99 #76991F
analogous
#1F3999 #421F99 #7F1F99
triadic
#421F99 #99421F #1F9942
tetradic
#421F99 #991F39 #76991F #1F997F
square
#421F99 #991F39 #76991F #1F997F
split-complementary
#421F99 #997F1F #39991F
monochromatic
#160A33 #2C1566 #421F99 #5829CC #7C56DD

Accessibility & contrast

On white

11.13
#421F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#421F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F99
11.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F99#FFFFFF#000000##FFFFFF
##421F991.0011.131.8911.13
#FFFFFF11.131.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9C
Deuteranopia (green-blind)
#003897
Tritanopia (blue-blind)
#1A435C
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #421f99;
/* rgb */ color: rgb(66, 31, 153);
/* oklch */ color: oklch(37.5% 0.181 287.1);
Tailwind
colors: {
  custom: {
    50: '#8160b8',
    500: '#421f99',
    950: '#000000',
  },
}
SCSS
$custom: #421f99;
$custom-light: #8160b8;
$custom-dark: #000000;
JSON
{
  "hex": "#421f99",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 257.213,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37506,
    "c": 0.18105,
    "h": 287.1
  },
  "luminance": 0.04438
}

Semantic roles & 50–950 ramp

primary
#421F99
secondary
#A1C054
accent
#E93FB8
background
#F8F5FB
surface
#F0EAF6
border
#CBC6D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #421F99

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

Preview Lab → · Contrast checker → · Palette generator →

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