#421F7B#421F7B

#421F7B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.6% C 0.146 H 295.0°. Best body text is #FFFFFF at 12.25:1 contrast (WCAG AA passes).

Color values

HEX#421F7B
RGBrgb(66, 31, 123)
HSLhsl(263, 60%, 30%)
HSVhsv(263, 75%, 48%)
CMYKcmyk(46.3%, 74.8%, 0%, 51.8%)
CIE-LABlab(22.19, 37.86, -46.10)
CIE-LCHlch(22.19, 59.65, 309.40°)
OKLaboklab(34.61% 0.0616 -0.132)
OKLCHoklch(34.61% 0.146 295)
XYZxyz(6.3109, 3.5681, 19.0913)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421F7B #587B1F
analogous
#1F2A7B #421F7B #701F7B
triadic
#421F7B #7B421F #1F7B42
tetradic
#421F7B #7B1F2A #587B1F #1F7B70
square
#421F7B #7B1F2A #587B1F #1F7B70
split-complementary
#421F7B #7B701F #2A7B1F
monochromatic
#0E0619 #28134A #421F7B #5C2BAC #7A44D0

Accessibility & contrast

On white

12.25
#421F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#421F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421F7B
12.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421F7B#FFFFFF#000000##FFFFFF
##421F7B1.0012.251.7112.25
#FFFFFF12.251.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00367E
Deuteranopia (green-blind)
#003479
Tritanopia (blue-blind)
#32374B
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #421f7b;
/* rgb */ color: rgb(66, 31, 123);
/* oklch */ color: oklch(34.6% 0.146 295.0);
Tailwind
colors: {
  custom: {
    50: '#7c5ea2',
    500: '#421f7b',
    950: '#000000',
  },
}
SCSS
$custom: #421f7b;
$custom-light: #7c5ea2;
$custom-dark: #000000;
JSON
{
  "hex": "#421f7b",
  "rgb": {
    "r": 66,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 262.826,
    "s": 59.74,
    "l": 30.196
  },
  "oklch": {
    "l": 0.34607,
    "c": 0.14564,
    "h": 295
  },
  "luminance": 0.03568
}

Semantic roles & 50–950 ramp

primary
#421F7B
secondary
#87AE48
accent
#E345A7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #421F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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