#662256#662256

#662256 is a dark, moderate pink. Relative luminance 0.046; OKLCH L 37.5% C 0.117 H 338.1°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).

Color values

HEX#662256
RGBrgb(102, 34, 86)
HSLhsl(314, 50%, 27%)
HSVhsv(314, 67%, 40%)
CMYKcmyk(0%, 66.7%, 15.7%, 60%)
CIE-LABlab(25.69, 36.95, -16.18)
CIE-LCHlch(25.69, 40.34, 336.36°)
OKLaboklab(37.47% 0.1089 -0.0437)
OKLCHoklch(37.47% 0.117 338.1)
XYZxyz(7.7314, 4.6414, 9.2910)
Luminance0.0464 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#662256 #226632
analogous
#542266 #662256 #662234
triadic
#662256 #566622 #225666
tetradic
#662256 #665422 #226632 #223466
square
#662256 #665422 #226632 #223466
split-complementary
#662256 #346622 #226654
monochromatic
#170813 #38132F #662256 #94317D #C042A2

Accessibility & contrast

On white

10.89
#662256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#662256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #662256
10.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##662256#FFFFFF#000000##FFFFFF
##6622561.0010.891.9310.89
#FFFFFF10.891.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243658
Deuteranopia (green-blind)
#394154
Tritanopia (blue-blind)
#6C2538
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #662256;
/* rgb */ color: rgb(102, 34, 86);
/* oklch */ color: oklch(37.5% 0.117 338.1);
Tailwind
colors: {
  custom: {
    50: '#946285',
    500: '#662256',
    950: '#000000',
  },
}
SCSS
$custom: #662256;
$custom-light: #946285;
$custom-dark: #000000;
JSON
{
  "hex": "#662256",
  "rgb": {
    "r": 102,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 314.118,
    "s": 50,
    "l": 26.667
  },
  "oklch": {
    "l": 0.37473,
    "c": 0.11733,
    "h": 338.1
  },
  "luminance": 0.04641
}

Semantic roles & 50–950 ramp

primary
#662256
secondary
#4A9A5D
accent
#DA6F4E
background
#F9F6F8
surface
#F2EBEF
border
#CCC6CA
text
#0D050B
muted
#7E7A7C

Preview Lab

Preview with #662256

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

Preview Lab → · Contrast checker → · Palette generator →

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