#C162FB#C162FB

#C162FB is a light, highly saturated violet. Relative luminance 0.270; OKLCH L 67.4% C 0.226 H 310.3°. Best body text is #000000 at 6.41:1 contrast (WCAG AA passes).

Color values

HEX#C162FB
RGBrgb(193, 98, 251)
HSLhsl(277, 95%, 68%)
HSVhsv(277, 61%, 98%)
CMYKcmyk(23.1%, 61%, 0%, 1.6%)
CIE-LABlab(59.01, 62.79, -61.22)
CIE-LCHlch(59.01, 87.70, 315.73°)
OKLaboklab(67.37% 0.1464 -0.1725)
OKLCHoklch(67.37% 0.226 310.3)
XYZxyz(43.7693, 27.0387, 94.1614)
Luminance0.2704 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C162FB #9CFB62
analogous
#7462FB #C162FB #FB62E8
triadic
#C162FB #FBC162 #62FBC1
tetradic
#C162FB #FB7462 #9CFB62 #62E8FB
square
#C162FB #FB7462 #9CFB62 #62E8FB
split-complementary
#C162FB #E8FB62 #62FB74
monochromatic
#8B06DD #A926F9 #C162FB #D99EFD #F0D9FE

Accessibility & contrast

On white

3.28
#C162FB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.41
#C162FB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C162FB
6.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C162FB#FFFFFF#000000##000000
##C162FB1.003.286.416.41
#FFFFFF3.281.0021.0021.00
#0000006.4121.001.001.00
##0000006.4121.001.001.00

Color blindness preview

Protanopia (red-blind)
#1D8AFF
Deuteranopia (green-blind)
#5090F7
Tritanopia (blue-blind)
#B980A6
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #c162fb;
/* rgb */ color: rgb(193, 98, 251);
/* oklch */ color: oklch(67.4% 0.226 310.3);
Tailwind
colors: {
  custom: {
    50: '#d793fd',
    500: '#c162fb',
    950: '#000000',
  },
}
SCSS
$custom: #c162fb;
$custom-light: #d793fd;
$custom-dark: #000000;
JSON
{
  "hex": "#c162fb",
  "rgb": {
    "r": 193,
    "g": 98,
    "b": 251
  },
  "hsl": {
    "h": 277.255,
    "s": 95.031,
    "l": 68.431
  },
  "oklch": {
    "l": 0.67369,
    "c": 0.22623,
    "h": 310.3
  },
  "luminance": 0.27038
}

Semantic roles & 50–950 ramp

primary
#C162FB
secondary
#D7F3C5
accent
#E60057
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150D18
muted
#837E86

Preview Lab

Preview with #C162FB

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

Preview Lab → · Contrast checker → · Palette generator →

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