#421772#421772

#421772 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.145 H 299.7°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#421772
RGBrgb(66, 23, 114)
HSLhsl(268, 66%, 27%)
HSVhsv(268, 80%, 45%)
CMYKcmyk(42.1%, 79.8%, 0%, 55.3%)
CIE-LABlab(19.99, 39.32, -43.93)
CIE-LCHlch(19.99, 58.96, 311.83°)
OKLaboklab(32.8% 0.0716 -0.1256)
OKLCHoklch(32.8% 0.145 299.7)
XYZxyz(5.5897, 2.9859, 16.1982)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421772 #477217
analogous
#171972 #421772 #701772
triadic
#421772 #724217 #177242
tetradic
#421772 #721719 #477217 #177270
square
#421772 #721719 #477217 #177270
split-complementary
#421772 #727017 #197217
monochromatic
#0F0519 #250D3F #421772 #5F21A5 #7D2ED5

Accessibility & contrast

On white

13.15
#421772 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#421772 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421772
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421772#FFFFFF#000000##FFFFFF
##4217721.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#372F44
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #421772;
/* rgb */ color: rgb(66, 23, 114);
/* oklch */ color: oklch(32.8% 0.145 299.7);
Tailwind
colors: {
  custom: {
    50: '#7c599b',
    500: '#421772',
    950: '#000000',
  },
}
SCSS
$custom: #421772;
$custom-light: #7c599b;
$custom-dark: #000000;
JSON
{
  "hex": "#421772",
  "rgb": {
    "r": 66,
    "g": 23,
    "b": 114
  },
  "hsl": {
    "h": 268.352,
    "s": 66.423,
    "l": 26.863
  },
  "oklch": {
    "l": 0.32804,
    "c": 0.14453,
    "h": 299.7
  },
  "luminance": 0.02986
}

Semantic roles & 50–950 ramp

primary
#421772
secondary
#75A83D
accent
#E93E99
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #421772

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

Preview Lab → · Contrast checker → · Palette generator →

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