#C162FC#C162FC

#C162FC is a light, highly saturated violet. Relative luminance 0.271; OKLCH L 67.4% C 0.227 H 310.1°. Best body text is #000000 at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#C162FC
RGBrgb(193, 98, 252)
HSLhsl(277, 96%, 69%)
HSVhsv(277, 61%, 99%)
CMYKcmyk(23.4%, 61.1%, 0%, 1.2%)
CIE-LABlab(59.07, 63.00, -61.68)
CIE-LCHlch(59.07, 88.17, 315.61°)
OKLaboklab(67.43% 0.1464 -0.1738)
OKLCHoklch(67.43% 0.227 310.1)
XYZxyz(43.9273, 27.1020, 94.9937)
Luminance0.2710 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C162FC #9DFC62
analogous
#7462FC #C162FC #FC62EA
triadic
#C162FC #FCC162 #62FCC1
tetradic
#C162FC #FC7462 #9DFC62 #62EAFC
square
#C162FC #FC7462 #9DFC62 #62EAFC
split-complementary
#C162FC #EAFC62 #62FC74
monochromatic
#8B04DF #A926FB #C162FC #D99EFD #F0DAFE

Accessibility & contrast

On white

3.27
#C162FC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.42
#C162FC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C162FC
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C162FC#FFFFFF#000000##000000
##C162FC1.003.276.426.42
#FFFFFF3.271.0021.0021.00
#0000006.4221.001.001.00
##0000006.4221.001.001.00

Color blindness preview

Protanopia (red-blind)
#1A8AFF
Deuteranopia (green-blind)
#4F90F8
Tritanopia (blue-blind)
#B980A6
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #c162fc;
/* rgb */ color: rgb(193, 98, 252);
/* oklch */ color: oklch(67.4% 0.227 310.1);
Tailwind
colors: {
  custom: {
    50: '#d893fe',
    500: '#c162fc',
    950: '#000000',
  },
}
SCSS
$custom: #c162fc;
$custom-light: #d893fe;
$custom-dark: #000000;
JSON
{
  "hex": "#c162fc",
  "rgb": {
    "r": 193,
    "g": 98,
    "b": 252
  },
  "hsl": {
    "h": 277.013,
    "s": 96.25,
    "l": 68.627
  },
  "oklch": {
    "l": 0.6743,
    "c": 0.22724,
    "h": 310.1
  },
  "luminance": 0.27101
}

Semantic roles & 50–950 ramp

primary
#C162FC
secondary
#D8F4C6
accent
#E60058
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #C162FC

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

Preview Lab → · Contrast checker → · Palette generator →

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