#C162DC#C162DC

#C162DC is a light, vivid purple. Relative luminance 0.252; OKLCH L 65.6% C 0.195 H 318.3°. Best body text is #000000 at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#C162DC
RGBrgb(193, 98, 220)
HSLhsl(287, 64%, 62%)
HSVhsv(287, 55%, 86%)
CMYKcmyk(12.3%, 55.5%, 0%, 13.7%)
CIE-LABlab(57.31, 56.43, -46.63)
CIE-LCHlch(57.31, 73.20, 320.43°)
OKLaboklab(65.58% 0.1457 -0.1298)
OKLCHoklch(65.58% 0.195 318.3)
XYZxyz(39.2765, 25.2416, 70.4995)
Luminance0.2524 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C162DC #7DDC62
analogous
#8462DC #C162DC #DC62BA
triadic
#C162DC #DCC162 #62DCC1
tetradic
#C162DC #DC8462 #7DDC62 #62BADC
square
#C162DC #DC8462 #7DDC62 #62BADC
split-complementary
#C162DC #BADC62 #62DC84
monochromatic
#8424A0 #AD30D1 #C162DC #D594E7 #E9C6F2

Accessibility & contrast

On white

3.47
#C162DC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.05
#C162DC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C162DC
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C162DC#FFFFFF#000000##000000
##C162DC1.003.476.056.05
#FFFFFF3.471.0021.0021.00
#0000006.0521.001.001.00
##0000006.0521.001.001.00

Color blindness preview

Protanopia (red-blind)
#4783E0
Deuteranopia (green-blind)
#688DD9
Tritanopia (blue-blind)
#C17596
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #c162dc;
/* rgb */ color: rgb(193, 98, 220);
/* oklch */ color: oklch(65.6% 0.195 318.3);
Tailwind
colors: {
  custom: {
    50: '#d693e7',
    500: '#c162dc',
    950: '#000000',
  },
}
SCSS
$custom: #c162dc;
$custom-light: #d693e7;
$custom-dark: #000000;
JSON
{
  "hex": "#c162dc",
  "rgb": {
    "r": 193,
    "g": 98,
    "b": 220
  },
  "hsl": {
    "h": 286.721,
    "s": 63.542,
    "l": 62.353
  },
  "oklch": {
    "l": 0.65581,
    "c": 0.19515,
    "h": 318.3
  },
  "luminance": 0.2524
}

Semantic roles & 50–950 ramp

primary
#C162DC
secondary
#C0E3B7
accent
#CB1A41
background
#FDF9FE
surface
#FBF2FC
border
#D4CCD5
text
#150D16
muted
#837E84

Preview Lab

Preview with #C162DC

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

Preview Lab → · Contrast checker → · Palette generator →

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