#C166B2#C166B2

#C166B2 is a light, vivid purple. Relative luminance 0.241; OKLCH L 64.1% C 0.149 H 333.6°. Best body text is #000000 at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#C166B2
RGBrgb(193, 102, 178)
HSLhsl(310, 42%, 58%)
HSVhsv(310, 47%, 76%)
CMYKcmyk(0%, 47.2%, 7.8%, 24.3%)
CIE-LABlab(56.14, 46.66, -24.50)
CIE-LCHlch(56.14, 52.70, 332.30°)
OKLaboklab(64.09% 0.134 -0.0664)
OKLCHoklch(64.09% 0.149 333.6)
XYZxyz(34.7795, 24.0567, 44.9224)
Luminance0.2406 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C166B2 #66C175
analogous
#A266C1 #C166B2 #C16684
triadic
#C166B2 #B2C166 #66B2C1
tetradic
#C166B2 #C1A266 #66C175 #6684C1
square
#C166B2 #C1A266 #66C175 #6684C1
split-complementary
#C166B2 #84C166 #66C1A2
monochromatic
#7B326F #A64396 #C166B2 #D392C8 #E4BDDE

Accessibility & contrast

On white

3.61
#C166B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.81
#C166B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C166B2
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C166B2#FFFFFF#000000##000000
##C166B21.003.615.815.81
#FFFFFF3.611.0021.0021.00
#0000005.8121.001.001.00
##0000005.8121.001.001.00

Color blindness preview

Protanopia (red-blind)
#657EB5
Deuteranopia (green-blind)
#7E8BAF
Tritanopia (blue-blind)
#C86B84
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #c166b2;
/* rgb */ color: rgb(193, 102, 178);
/* oklch */ color: oklch(64.1% 0.149 333.6);
Tailwind
colors: {
  custom: {
    50: '#d694c9',
    500: '#c166b2',
    950: '#000000',
  },
}
SCSS
$custom: #c166b2;
$custom-light: #d694c9;
$custom-dark: #000000;
JSON
{
  "hex": "#c166b2",
  "rgb": {
    "r": 193,
    "g": 102,
    "b": 178
  },
  "hsl": {
    "h": 309.89,
    "s": 42.326,
    "l": 57.843
  },
  "oklch": {
    "l": 0.64092,
    "c": 0.14949,
    "h": 333.6
  },
  "luminance": 0.24055
}

Semantic roles & 50–950 ramp

primary
#C166B2
secondary
#AFD4B5
accent
#D26A56
background
#FDF9FC
surface
#FAF2F8
border
#D3CCD1
text
#140D13
muted
#837E82

Preview Lab

Preview with #C166B2

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

Preview Lab → · Contrast checker → · Palette generator →

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