#C166F2#C166F2

#C166F2 is a light, highly saturated violet. Relative luminance 0.273; OKLCH L 67.3% C 0.211 H 312.1°. Best body text is #000000 at 6.45:1 contrast (WCAG AA passes).

Color values

HEX#C166F2
RGBrgb(193, 102, 242)
HSLhsl(279, 84%, 67%)
HSVhsv(279, 58%, 95%)
CMYKcmyk(20.2%, 57.9%, 0%, 5.1%)
CIE-LABlab(59.21, 58.98, -55.92)
CIE-LCHlch(59.21, 81.27, 316.53°)
OKLaboklab(67.35% 0.1416 -0.157)
OKLCHoklch(67.35% 0.211 312.1)
XYZxyz(42.7678, 27.2520, 86.9944)
Luminance0.2725 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C166F2 #97F266
analogous
#7B66F2 #C166F2 #F266DD
triadic
#C166F2 #F2C166 #66F2C1
tetradic
#C166F2 #F27B66 #97F266 #66DDF2
square
#C166F2 #F27B66 #97F266 #66DDF2
split-complementary
#C166F2 #DDF266 #66F27B
monochromatic
#8B11CC #AA2EED #C166F2 #D89EF7 #EFD7FC

Accessibility & contrast

On white

3.26
#C166F2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

6.45
#C166F2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C166F2
6.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C166F2#FFFFFF#000000##000000
##C166F21.003.266.456.45
#FFFFFF3.261.0021.0021.00
#0000006.4521.001.001.00
##0000006.4521.001.001.00

Color blindness preview

Protanopia (red-blind)
#388AF6
Deuteranopia (green-blind)
#5C90EF
Tritanopia (blue-blind)
#BC7FA3
Achromatopsia (no color)
#8E8E8E

Design tokens & code

CSS
--color: #c166f2;
/* rgb */ color: rgb(193, 102, 242);
/* oklch */ color: oklch(67.3% 0.211 312.1);
Tailwind
colors: {
  custom: {
    50: '#d796f7',
    500: '#c166f2',
    950: '#000000',
  },
}
SCSS
$custom: #c166f2;
$custom-light: #d796f7;
$custom-dark: #000000;
JSON
{
  "hex": "#c166f2",
  "rgb": {
    "r": 193,
    "g": 102,
    "b": 242
  },
  "hsl": {
    "h": 279,
    "s": 84.337,
    "l": 67.451
  },
  "oklch": {
    "l": 0.67347,
    "c": 0.21143,
    "h": 312.1
  },
  "luminance": 0.27251
}

Semantic roles & 50–950 ramp

primary
#C166F2
secondary
#D3F0C4
accent
#E10552
background
#FDF9FF
surface
#FBF2FF
border
#D4CCD7
text
#150E17
muted
#837E85

Preview Lab

Preview with #C166F2

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

Preview Lab → · Contrast checker → · Palette generator →

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