#421273#421273

#421273 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.151 H 300.1°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#421273
RGBrgb(66, 18, 115)
HSLhsl(270, 73%, 26%)
HSVhsv(270, 84%, 45%)
CMYKcmyk(42.6%, 84.3%, 0%, 54.9%)
CIE-LABlab(19.34, 41.71, -45.62)
CIE-LCHlch(19.34, 61.82, 312.44°)
OKLaboklab(32.38% 0.0755 -0.1305)
OKLCHoklch(32.38% 0.151 300.1)
XYZxyz(5.5568, 2.8286, 16.4695)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421273 #437312
analogous
#121273 #421273 #721273
triadic
#421273 #734212 #127342
tetradic
#421273 #731212 #437312 #127372
square
#421273 #731212 #437312 #127372
split-complementary
#421273 #737212 #127312
monochromatic
#0F041A #240A3E #421273 #601AA8 #7F23DD

Accessibility & contrast

On white

13.41
#421273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#421273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421273
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421273#FFFFFF#000000##FFFFFF
##4212731.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F76
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#362D43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #421273;
/* rgb */ color: rgb(66, 18, 115);
/* oklch */ color: oklch(32.4% 0.151 300.1);
Tailwind
colors: {
  custom: {
    50: '#7c579c',
    500: '#421273',
    950: '#000000',
  },
}
SCSS
$custom: #421273;
$custom-light: #7c579c;
$custom-dark: #000000;
JSON
{
  "hex": "#421273",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 269.691,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32384,
    "c": 0.15078,
    "h": 300.1
  },
  "luminance": 0.02829
}

Semantic roles & 50–950 ramp

primary
#421273
secondary
#71AA37
accent
#F03895
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #421273

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

Preview Lab → · Contrast checker → · Palette generator →

#421273 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva