#421252#421252

#421252 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.5% C 0.116 H 316.3°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#421252
RGBrgb(66, 18, 82)
HSLhsl(285, 64%, 20%)
HSVhsv(285, 78%, 32%)
CMYKcmyk(19.5%, 78%, 0%, 67.8%)
CIE-LABlab(16.50, 33.61, -28.40)
CIE-LCHlch(16.50, 44.00, 319.80°)
OKLaboklab(29.5% 0.0835 -0.0799)
OKLCHoklch(29.5% 0.116 316.3)
XYZxyz(3.9858, 2.2002, 8.1957)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421252 #225212
analogous
#221252 #421252 #521242
triadic
#421252 #524212 #125242
tetradic
#421252 #522212 #225212 #124252
square
#421252 #522212 #225212 #124252
split-complementary
#421252 #425212 #125222
monochromatic
#140619 #1A0720 #421252 #6A1D84 #9328B6

Accessibility & contrast

On white

14.58
#421252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#421252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421252
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421252#FFFFFF#000000##FFFFFF
##4212521.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002654
Deuteranopia (green-blind)
#122A51
Tritanopia (blue-blind)
#411F30
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #421252;
/* rgb */ color: rgb(66, 18, 82);
/* oklch */ color: oklch(29.5% 0.116 316.3);
Tailwind
colors: {
  custom: {
    50: '#795583',
    500: '#421252',
    950: '#000000',
  },
}
SCSS
$custom: #421252;
$custom-light: #795583;
$custom-dark: #000000;
JSON
{
  "hex": "#421252",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 285,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29503,
    "c": 0.11556,
    "h": 316.3
  },
  "luminance": 0.022
}

Semantic roles & 50–950 ramp

primary
#421252
secondary
#4A8B35
accent
#E7416A
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#09030A
muted
#7B787C

Preview Lab

Preview with #421252

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

Preview Lab → · Contrast checker → · Palette generator →

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