#C178F7#C178F7

#C178F7 is a light, vivid violet. Relative luminance 0.315; OKLCH L 70.2% C 0.190 H 308.8°. Best body text is #000000 at 7.30:1 contrast (WCAG AA passes).

Color values

HEX#C178F7
RGBrgb(193, 120, 247)
HSLhsl(274, 89%, 72%)
HSVhsv(274, 51%, 97%)
CMYKcmyk(21.9%, 51.4%, 0%, 3.1%)
CIE-LABlab(62.92, 50.96, -52.78)
CIE-LCHlch(62.92, 73.37, 314.00°)
OKLaboklab(70.16% 0.1191 -0.1479)
OKLCHoklch(70.16% 0.19 308.8)
XYZxyz(45.4940, 31.4865, 91.6585)
Luminance0.3149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C178F7 #AEF778
analogous
#8278F7 #C178F7 #F778EE
triadic
#C178F7 #F7C178 #78F7C1
tetradic
#C178F7 #F78278 #AEF778 #78EEF7
square
#C178F7 #F78278 #AEF778 #78EEF7
split-complementary
#C178F7 #EEF778 #78F782
monochromatic
#8B0EE7 #A63EF4 #C178F7 #DCB2FA #F2E2FD

Accessibility & contrast

On white

2.88
#C178F7 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.30
#C178F7 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C178F7
7.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C178F7#FFFFFF#000000##000000
##C178F71.002.887.307.30
#FFFFFF2.881.0021.0021.00
#0000007.3021.001.001.00
##0000007.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5495FB
Deuteranopia (green-blind)
#6A99F4
Tritanopia (blue-blind)
#BA8EAC
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #c178f7;
/* rgb */ color: rgb(193, 120, 247);
/* oklch */ color: oklch(70.2% 0.190 308.8);
Tailwind
colors: {
  custom: {
    50: '#d6a1fa',
    500: '#c178f7',
    950: '#000000',
  },
}
SCSS
$custom: #c178f7;
$custom-light: #d6a1fa;
$custom-dark: #000000;
JSON
{
  "hex": "#c178f7",
  "rgb": {
    "r": 193,
    "g": 120,
    "b": 247
  },
  "hsl": {
    "h": 274.488,
    "s": 88.811,
    "l": 71.961
  },
  "oklch": {
    "l": 0.70159,
    "c": 0.18987,
    "h": 308.8
  },
  "luminance": 0.31486
}

Semantic roles & 50–950 ramp

primary
#C178F7
secondary
#E3F5D5
accent
#E50062
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C178F7

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

Preview Lab → · Contrast checker → · Palette generator →

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