#421172#421172

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

Color values

HEX#421172
RGBrgb(66, 17, 114)
HSLhsl(270, 74%, 26%)
HSVhsv(270, 85%, 45%)
CMYKcmyk(42.1%, 85.1%, 0%, 55.3%)
CIE-LABlab(19.12, 41.85, -45.35)
CIE-LCHlch(19.12, 61.71, 312.70°)
OKLaboklab(32.2% 0.0767 -0.1297)
OKLCHoklch(32.2% 0.151 300.6)
XYZxyz(5.4837, 2.7740, 16.1629)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421172 #417211
analogous
#111172 #421172 #721171
triadic
#421172 #724211 #117242
tetradic
#421172 #721111 #417211 #117172
square
#421172 #721111 #417211 #117172
split-complementary
#421172 #717211 #117211
monochromatic
#0F041B #23093D #421172 #6119A7 #8021DD

Accessibility & contrast

On white

13.51
#421172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#421172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421172
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421172#FFFFFF#000000##FFFFFF
##4211721.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #421172;
/* rgb */ color: rgb(66, 17, 114);
/* oklch */ color: oklch(32.2% 0.151 300.6);
Tailwind
colors: {
  custom: {
    50: '#7c579b',
    500: '#421172',
    950: '#000000',
  },
}
SCSS
$custom: #421172;
$custom-light: #7c579b;
$custom-dark: #000000;
JSON
{
  "hex": "#421172",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 270.309,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.32196,
    "c": 0.15065,
    "h": 300.6
  },
  "luminance": 0.02774
}

Semantic roles & 50–950 ramp

primary
#421172
secondary
#6FA936
accent
#F13793
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #421172

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

Preview Lab → · Contrast checker → · Palette generator →

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