#421255#421255

#421255 is a dark, moderate purple. Relative luminance 0.022; OKLCH L 29.7% C 0.119 H 314.4°. Best body text is #FFFFFF at 14.49:1 contrast (WCAG AA passes).

Color values

HEX#421255
RGBrgb(66, 18, 85)
HSLhsl(283, 65%, 20%)
HSVhsv(283, 79%, 33%)
CMYKcmyk(22.4%, 78.8%, 0%, 66.7%)
CIE-LABlab(16.73, 34.30, -30.07)
CIE-LCHlch(16.73, 45.61, 318.76°)
OKLaboklab(29.74% 0.0831 -0.0848)
OKLCHoklch(29.74% 0.119 314.4)
XYZxyz(4.1025, 2.2469, 8.8102)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#421255 #255512
analogous
#201255 #421255 #551246
triadic
#421255 #554212 #125542
tetradic
#421255 #552012 #255512 #124655
square
#421255 #552012 #255512 #124655
split-complementary
#421255 #465512 #125520
monochromatic
#140519 #1B0722 #421255 #691D88 #9027BA

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##421255#FFFFFF#000000##FFFFFF
##4212551.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)
#002757
Deuteranopia (green-blind)
#0E2A54
Tritanopia (blue-blind)
#402032
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #421255;
/* rgb */ color: rgb(66, 18, 85);
/* oklch */ color: oklch(29.7% 0.119 314.4);
Tailwind
colors: {
  custom: {
    50: '#795585',
    500: '#421255',
    950: '#000000',
  },
}
SCSS
$custom: #421255;
$custom-light: #795585;
$custom-dark: #000000;
JSON
{
  "hex": "#421255",
  "rgb": {
    "r": 66,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 282.985,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.29738,
    "c": 0.11873,
    "h": 314.4
  },
  "luminance": 0.02247
}

Semantic roles & 50–950 ramp

primary
#421255
secondary
#4E8E35
accent
#E8406F
background
#F7F5F8
surface
#EEE9EF
border
#C9C5CA
text
#09030B
muted
#7B787C

Preview Lab

Preview with #421255

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

Preview Lab → · Contrast checker → · Palette generator →

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