#421157#421157

#421157 is a dark, vivid purple. Relative luminance 0.022; OKLCH L 29.8% C 0.122 H 313.4°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#421157
RGBrgb(66, 17, 87)
HSLhsl(282, 67%, 20%)
HSVhsv(282, 80%, 34%)
CMYKcmyk(24.1%, 80.5%, 0%, 65.9%)
CIE-LABlab(16.74, 35.21, -31.41)
CIE-LCHlch(16.74, 47.18, 318.26°)
OKLaboklab(29.79% 0.0839 -0.0887)
OKLCHoklch(29.79% 0.122 313.4)
XYZxyz(4.1672, 2.2474, 9.2293)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421157 #265711
analogous
#1F1157 #421157 #571149
triadic
#421157 #574211 #115742
tetradic
#421157 #571F11 #265711 #114957
square
#421157 #571F11 #265711 #114957
split-complementary
#421157 #495711 #11571F
monochromatic
#13051A #1B0724 #421157 #691B8A #9025BD

Accessibility & contrast

On white

14.49
#421157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#421157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #421157
14.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##421157#FFFFFF#000000##FFFFFF
##4211571.0014.491.4514.49
#FFFFFF14.491.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#0A2A55
Tritanopia (blue-blind)
#402133
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #421157;
/* rgb */ color: rgb(66, 17, 87);
/* oklch */ color: oklch(29.8% 0.122 313.4);
Tailwind
colors: {
  custom: {
    50: '#795587',
    500: '#421157',
    950: '#000000',
  },
}
SCSS
$custom: #421157;
$custom-light: #795587;
$custom-dark: #000000;
JSON
{
  "hex": "#421157",
  "rgb": {
    "r": 66,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 282,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.29789,
    "c": 0.12212,
    "h": 313.4
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#421157
secondary
#4F9034
accent
#EA3E71
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #421157

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

Preview Lab → · Contrast checker → · Palette generator →

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