#421272#421272

#421272 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.150 H 300.4°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#421272
RGBrgb(66, 18, 114)
HSLhsl(270, 73%, 26%)
HSVhsv(270, 84%, 45%)
CMYKcmyk(42.1%, 84.2%, 0%, 55.3%)
CIE-LABlab(19.25, 41.46, -45.14)
CIE-LCHlch(19.25, 61.29, 312.57°)
OKLaboklab(32.29% 0.0759 -0.1291)
OKLCHoklch(32.29% 0.15 300.4)
XYZxyz(5.4996, 2.8057, 16.1681)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421272 #427212
analogous
#121272 #421272 #721272
triadic
#421272 #724212 #127242
tetradic
#421272 #721212 #427212 #127272
square
#421272 #721212 #427212 #127272
split-complementary
#421272 #727212 #127212
monochromatic
#0F041A #230A3D #421272 #611AA7 #7F23DC

Accessibility & contrast

On white

13.45
#421272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#421272 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421272
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421272#FFFFFF#000000##FFFFFF
##4212721.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E75
Deuteranopia (green-blind)
#002E70
Tritanopia (blue-blind)
#372D43
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #421272;
/* rgb */ color: rgb(66, 18, 114);
/* oklch */ color: oklch(32.3% 0.150 300.4);
Tailwind
colors: {
  custom: {
    50: '#7c579b',
    500: '#421272',
    950: '#000000',
  },
}
SCSS
$custom: #421272;
$custom-light: #7c579b;
$custom-dark: #000000;
JSON
{
  "hex": "#421272",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 270,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.32288,
    "c": 0.14971,
    "h": 300.4
  },
  "luminance": 0.02806
}

Semantic roles & 50–950 ramp

primary
#421272
secondary
#70A937
accent
#EF3894
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #421272

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

Preview Lab → · Contrast checker → · Palette generator →

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