#C166B5#C166B5

#C166B5 is a light, vivid purple. Relative luminance 0.242; OKLCH L 64.2% C 0.152 H 332.3°. Best body text is #000000 at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#C166B5
RGBrgb(193, 102, 181)
HSLhsl(308, 42%, 58%)
HSVhsv(308, 47%, 76%)
CMYKcmyk(0%, 47.2%, 6.2%, 24.3%)
CIE-LABlab(56.27, 47.18, -26.04)
CIE-LCHlch(56.27, 53.89, 331.10°)
OKLaboklab(64.22% 0.1346 -0.0707)
OKLCHoklch(64.22% 0.152 332.3)
XYZxyz(35.0840, 24.1785, 46.5261)
Luminance0.2418 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C166B5 #66C172
analogous
#9F66C1 #C166B5 #C16687
triadic
#C166B5 #B5C166 #66B5C1
tetradic
#C166B5 #C19F66 #66C172 #6687C1
square
#C166B5 #C19F66 #66C172 #6687C1
split-complementary
#C166B5 #87C166 #66C19F
monochromatic
#7B3271 #A64399 #C166B5 #D392CA #E4BDDF

Accessibility & contrast

On white

3.60
#C166B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.84
#C166B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C166B5
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C166B5#FFFFFF#000000##000000
##C166B51.003.605.845.84
#FFFFFF3.601.0021.0021.00
#0000005.8421.001.001.00
##0000005.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#647FB8
Deuteranopia (green-blind)
#7D8CB2
Tritanopia (blue-blind)
#C86C85
Achromatopsia (no color)
#878787

Design tokens & code

CSS
--color: #c166b5;
/* rgb */ color: rgb(193, 102, 181);
/* oklch */ color: oklch(64.2% 0.152 332.3);
Tailwind
colors: {
  custom: {
    50: '#d695cb',
    500: '#c166b5',
    950: '#000000',
  },
}
SCSS
$custom: #c166b5;
$custom-light: #d695cb;
$custom-dark: #000000;
JSON
{
  "hex": "#c166b5",
  "rgb": {
    "r": 193,
    "g": 102,
    "b": 181
  },
  "hsl": {
    "h": 307.912,
    "s": 42.326,
    "l": 57.843
  },
  "oklch": {
    "l": 0.64222,
    "c": 0.15206,
    "h": 332.3
  },
  "luminance": 0.24176
}

Semantic roles & 50–950 ramp

primary
#C166B5
secondary
#AFD4B4
accent
#D26656
background
#FDF9FC
surface
#FAF2F8
border
#D3CCD1
text
#140D13
muted
#837E82

Preview Lab

Preview with #C166B5

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

Preview Lab → · Contrast checker → · Palette generator →

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