#C162E2#C162E2

#C162E2 is a light, highly saturated purple. Relative luminance 0.256; OKLCH L 65.9% C 0.201 H 316.6°. Best body text is #000000 at 6.11:1 contrast (WCAG AA passes).

Color values

HEX#C162E2
RGBrgb(193, 98, 226)
HSLhsl(285, 69%, 64%)
HSVhsv(285, 57%, 89%)
CMYKcmyk(14.6%, 56.6%, 0%, 11.4%)
CIE-LABlab(57.62, 57.62, -49.51)
CIE-LCHlch(57.62, 75.97, 319.33°)
OKLaboklab(65.91% 0.1461 -0.1382)
OKLCHoklch(65.91% 0.201 316.6)
XYZxyz(40.0854, 25.5652, 74.7598)
Luminance0.2556 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C162E2 #83E262
analogous
#8162E2 #C162E2 #E262C3
triadic
#C162E2 #E2C162 #62E2C1
tetradic
#C162E2 #E28162 #83E262 #62C3E2
square
#C162E2 #E28162 #83E262 #62C3E2
split-complementary
#C162E2 #C3E262 #62E281
monochromatic
#861FAA #AD2ED8 #C162E2 #D596EC #EAC9F5

Accessibility & contrast

On white

3.44
#C162E2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.11
#C162E2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C162E2
6.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C162E2#FFFFFF#000000##000000
##C162E21.003.446.116.11
#FFFFFF3.441.0021.0021.00
#0000006.1121.001.001.00
##0000006.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#4284E6
Deuteranopia (green-blind)
#648DDF
Tritanopia (blue-blind)
#C07799
Achromatopsia (no color)
#8A8A8A

Design tokens & code

CSS
--color: #c162e2;
/* rgb */ color: rgb(193, 98, 226);
/* oklch */ color: oklch(65.9% 0.201 316.6);
Tailwind
colors: {
  custom: {
    50: '#d793ec',
    500: '#c162e2',
    950: '#000000',
  },
}
SCSS
$custom: #c162e2;
$custom-light: #d793ec;
$custom-dark: #000000;
JSON
{
  "hex": "#c162e2",
  "rgb": {
    "r": 193,
    "g": 98,
    "b": 226
  },
  "hsl": {
    "h": 284.531,
    "s": 68.817,
    "l": 63.529
  },
  "oklch": {
    "l": 0.6591,
    "c": 0.20109,
    "h": 316.6
  },
  "luminance": 0.25564
}

Semantic roles & 50–950 ramp

primary
#C162E2
secondary
#C5E7B9
accent
#D11545
background
#FDF9FE
surface
#FBF2FD
border
#D4CCD5
text
#150D16
muted
#837E84

Preview Lab

Preview with #C162E2

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

Preview Lab → · Contrast checker → · Palette generator →

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