#421872#421872

#421872 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.143 H 299.5°. Best body text is #FFFFFF at 13.08:1 contrast (WCAG AA passes).

Color values

HEX#421872
RGBrgb(66, 24, 114)
HSLhsl(268, 65%, 27%)
HSVhsv(268, 79%, 45%)
CMYKcmyk(42.1%, 78.9%, 0%, 55.3%)
CIE-LABlab(20.15, 38.86, -43.66)
CIE-LCHlch(20.15, 58.45, 311.67°)
OKLaboklab(32.92% 0.0706 -0.1248)
OKLCHoklch(32.92% 0.143 299.5)
XYZxyz(5.6099, 3.0264, 16.2049)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421872 #487218
analogous
#181B72 #421872 #6F1872
triadic
#421872 #724218 #187242
tetradic
#421872 #72181B #487218 #18726F
square
#421872 #72181B #487218 #18726F
split-complementary
#421872 #726F18 #1B7218
monochromatic
#0F0519 #250D3F #421872 #5F23A5 #7D31D4

Accessibility & contrast

On white

13.08
#421872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#421872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421872
13.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421872#FFFFFF#000000##FFFFFF
##4218721.0013.081.6113.08
#FFFFFF13.081.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#003070
Tritanopia (blue-blind)
#373044
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #421872;
/* rgb */ color: rgb(66, 24, 114);
/* oklch */ color: oklch(32.9% 0.143 299.5);
Tailwind
colors: {
  custom: {
    50: '#7c5a9b',
    500: '#421872',
    950: '#000000',
  },
}
SCSS
$custom: #421872;
$custom-light: #7c5a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#421872",
  "rgb": {
    "r": 66,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 268,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32917,
    "c": 0.14339,
    "h": 299.5
  },
  "luminance": 0.03026
}

Semantic roles & 50–950 ramp

primary
#421872
secondary
#76A73E
accent
#E8409A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #421872

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

Preview Lab → · Contrast checker → · Palette generator →

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