#642158#642158

#642158 is a dark, moderate pink. Relative luminance 0.045; OKLCH L 37.1% C 0.119 H 335.5°. Best body text is #FFFFFF at 11.05:1 contrast (WCAG AA passes).

Color values

HEX#642158
RGBrgb(100, 33, 88)
HSLhsl(311, 50%, 26%)
HSVhsv(311, 67%, 39%)
CMYKcmyk(0%, 67%, 12%, 60.8%)
CIE-LABlab(25.27, 37.16, -18.18)
CIE-LCHlch(25.27, 41.37, 333.93°)
OKLaboklab(37.13% 0.1083 -0.0494)
OKLCHoklch(37.13% 0.119 335.5)
XYZxyz(7.5609, 4.5022, 9.7014)
Luminance0.0450 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#642158 #21642D
analogous
#4E2164 #642158 #642136
triadic
#642158 #586421 #215864
tetradic
#642158 #644E21 #21642D #213664
square
#642158 #644E21 #21642D #213664
split-complementary
#642158 #366421 #21644E
monochromatic
#170814 #361230 #642158 #923080 #C040A9

Accessibility & contrast

On white

11.05
#642158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.90
#642158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #642158
11.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##642158#FFFFFF#000000##FFFFFF
##6421581.0011.051.9011.05
#FFFFFF11.051.0021.001.00
#0000001.9021.001.0021.00
##FFFFFF11.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21355A
Deuteranopia (green-blind)
#374056
Tritanopia (blue-blind)
#692539
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #642158;
/* rgb */ color: rgb(100, 33, 88);
/* oklch */ color: oklch(37.1% 0.119 335.5);
Tailwind
colors: {
  custom: {
    50: '#926187',
    500: '#642158',
    950: '#000000',
  },
}
SCSS
$custom: #642158;
$custom-light: #926187;
$custom-dark: #000000;
JSON
{
  "hex": "#642158",
  "rgb": {
    "r": 100,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 310.746,
    "s": 50.376,
    "l": 26.078
  },
  "oklch": {
    "l": 0.37129,
    "c": 0.11904,
    "h": 335.5
  },
  "luminance": 0.04502
}

Semantic roles & 50–950 ramp

primary
#642158
secondary
#499857
accent
#DA674E
background
#F9F5F8
surface
#F1EAEF
border
#CBC6CA
text
#0D050B
muted
#7E797C

Preview Lab

Preview with #642158

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

Preview Lab → · Contrast checker → · Palette generator →

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