#C162D4#C162D4

#C162D4 is a light, vivid purple. Relative luminance 0.248; OKLCH L 65.2% C 0.187 H 320.7°. Best body text is #000000 at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#C162D4
RGBrgb(193, 98, 212)
HSLhsl(290, 57%, 61%)
HSVhsv(290, 54%, 83%)
CMYKcmyk(9%, 53.8%, 0%, 16.9%)
CIE-LABlab(56.91, 54.87, -42.75)
CIE-LCHlch(56.91, 69.55, 322.08°)
OKLaboklab(65.15% 0.145 -0.1186)
OKLCHoklch(65.15% 0.187 320.7)
XYZxyz(38.2423, 24.8279, 65.0525)
Luminance0.2483 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C162D4 #75D462
analogous
#8862D4 #C162D4 #D462AE
triadic
#C162D4 #D4C162 #62D4C1
tetradic
#C162D4 #D48862 #75D462 #62AED4
square
#C162D4 #D48862 #75D462 #62AED4
split-complementary
#C162D4 #AED462 #62D488
monochromatic
#812893 #AC35C3 #C162D4 #D492E1 #E7C2EE

Accessibility & contrast

On white

3.52
#C162D4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.97
#C162D4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C162D4
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C162D4#FFFFFF#000000##000000
##C162D41.003.525.975.97
#FFFFFF3.521.0021.0021.00
#0000005.9721.001.001.00
##0000005.9721.001.001.00

Color blindness preview

Protanopia (red-blind)
#4D82D8
Deuteranopia (green-blind)
#6C8CD1
Tritanopia (blue-blind)
#C27292
Achromatopsia (no color)
#898989

Design tokens & code

CSS
--color: #c162d4;
/* rgb */ color: rgb(193, 98, 212);
/* oklch */ color: oklch(65.2% 0.187 320.7);
Tailwind
colors: {
  custom: {
    50: '#d693e1',
    500: '#c162d4',
    950: '#000000',
  },
}
SCSS
$custom: #c162d4;
$custom-light: #d693e1;
$custom-dark: #000000;
JSON
{
  "hex": "#c162d4",
  "rgb": {
    "r": 193,
    "g": 98,
    "b": 212
  },
  "hsl": {
    "h": 290,
    "s": 57,
    "l": 60.784
  },
  "oklch": {
    "l": 0.65154,
    "c": 0.18732,
    "h": 320.7
  },
  "luminance": 0.24826
}

Semantic roles & 50–950 ramp

primary
#C162D4
secondary
#BBDEB3
accent
#C5213C
background
#FDF9FD
surface
#FBF2FB
border
#D4CCD4
text
#150D15
muted
#837E83

Preview Lab

Preview with #C162D4

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

Preview Lab → · Contrast checker → · Palette generator →

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