#C170B5#C170B5

#C170B5 is a light, vivid purple. Relative luminance 0.263; OKLCH L 65.7% C 0.135 H 332.6°. Best body text is #000000 at 6.25:1 contrast (WCAG AA passes).

Color values

HEX#C170B5
RGBrgb(193, 112, 181)
HSLhsl(309, 40%, 60%)
HSVhsv(309, 42%, 76%)
CMYKcmyk(0%, 42%, 6.2%, 24.3%)
CIE-LABlab(58.29, 41.99, -22.93)
CIE-LCHlch(58.29, 47.84, 331.35°)
OKLaboklab(65.73% 0.1197 -0.062)
OKLCHoklch(65.73% 0.135 332.6)
XYZxyz(36.1267, 26.2640, 46.8737)
Luminance0.2626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C170B5 #70C17C
analogous
#A570C1 #C170B5 #C1708D
triadic
#C170B5 #B5C170 #70B5C1
tetradic
#C170B5 #C1A570 #70C17C #708DC1
square
#C170B5 #C1A570 #70C17C #708DC1
split-complementary
#C170B5 #8DC170 #70C1A5
monochromatic
#7F3775 #AA4A9C #C170B5 #D49BCB #E6C5E1

Accessibility & contrast

On white

3.36
#C170B5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.25
#C170B5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C170B5
6.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C170B5#FFFFFF#000000##000000
##C170B51.003.366.256.25
#FFFFFF3.361.0021.0021.00
#0000006.2521.001.001.00
##0000006.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#6E85B7
Deuteranopia (green-blind)
#8490B3
Tritanopia (blue-blind)
#C8758A
Achromatopsia (no color)
#8C8C8C

Design tokens & code

CSS
--color: #c170b5;
/* rgb */ color: rgb(193, 112, 181);
/* oklch */ color: oklch(65.7% 0.135 332.6);
Tailwind
colors: {
  custom: {
    50: '#d59bcb',
    500: '#c170b5',
    950: '#000000',
  },
}
SCSS
$custom: #c170b5;
$custom-light: #d59bcb;
$custom-dark: #000000;
JSON
{
  "hex": "#c170b5",
  "rgb": {
    "r": 193,
    "g": 112,
    "b": 181
  },
  "hsl": {
    "h": 308.889,
    "s": 39.512,
    "l": 59.804
  },
  "oklch": {
    "l": 0.65733,
    "c": 0.13484,
    "h": 332.6
  },
  "luminance": 0.26262
}

Semantic roles & 50–950 ramp

primary
#C170B5
secondary
#B7D6BB
accent
#CF6A58
background
#FDF9FC
surface
#FAF2F8
border
#D3CCD1
text
#140E13
muted
#837E82

Preview Lab

Preview with #C170B5

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

Preview Lab → · Contrast checker → · Palette generator →

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