#420838#420838

#420838 is a dark, moderate pink. Relative luminance 0.016; OKLCH L 26.7% C 0.104 H 336.3°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#420838
RGBrgb(66, 8, 56)
HSLhsl(310, 78%, 15%)
HSVhsv(310, 88%, 26%)
CMYKcmyk(0%, 87.9%, 15.2%, 74.1%)
CIE-LABlab(13.34, 32.39, -15.30)
CIE-LCHlch(13.34, 35.82, 334.71°)
OKLaboklab(26.67% 0.0952 -0.0417)
OKLCHoklch(26.67% 0.104 336.3)
XYZxyz(3.0475, 1.6177, 3.8924)
Luminance0.0162 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#420838 #084212
analogous
#2F0842 #420838 #42081B
triadic
#420838 #384208 #083842
tetradic
#420838 #422F08 #084212 #081B42
square
#420838 #422F08 #084212 #081B42
split-complementary
#420838 #1B4208 #08422F
monochromatic
#1B0317 #1B0317 #420838 #790F66 #AF1595

Accessibility & contrast

On white

15.87
#420838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#420838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #420838
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##420838#FFFFFF#000000##FFFFFF
##4208381.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#091D39
Deuteranopia (green-blind)
#1E2537
Tritanopia (blue-blind)
#460C1F
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #420838;
/* rgb */ color: rgb(66, 8, 56);
/* oklch */ color: oklch(26.7% 0.104 336.3);
Tailwind
colors: {
  custom: {
    50: '#794f6e',
    500: '#420838',
    950: '#000000',
  },
}
SCSS
$custom: #420838;
$custom-light: #794f6e;
$custom-dark: #000000;
JSON
{
  "hex": "#420838",
  "rgb": {
    "r": 66,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 310.345,
    "s": 78.378,
    "l": 14.51
  },
  "oklch": {
    "l": 0.26674,
    "c": 0.10397,
    "h": 336.3
  },
  "luminance": 0.01617
}

Semantic roles & 50–950 ramp

primary
#420838
secondary
#258035
accent
#F55433
background
#F7F4F6
surface
#EEE7EC
border
#C9C3C7
text
#090207
muted
#7B787A

Preview Lab

Preview with #420838

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

Preview Lab → · Contrast checker → · Palette generator →

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