#C178F9#C178F9

#C178F9 is a light, vivid violet. Relative luminance 0.316; OKLCH L 70.3% C 0.192 H 308.4°. Best body text is #000000 at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#C178F9
RGBrgb(193, 120, 249)
HSLhsl(274, 91%, 72%)
HSVhsv(274, 52%, 98%)
CMYKcmyk(22.5%, 51.8%, 0%, 2.4%)
CIE-LABlab(63.02, 51.40, -53.72)
CIE-LCHlch(63.02, 74.35, 313.74°)
OKLaboklab(70.27% 0.1193 -0.1506)
OKLCHoklch(70.27% 0.192 308.4)
XYZxyz(45.8043, 31.6106, 93.2926)
Luminance0.3161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C178F9 #B0F978
analogous
#8078F9 #C178F9 #F978F1
triadic
#C178F9 #F9C178 #78F9C1
tetradic
#C178F9 #F98078 #B0F978 #78F1F9
square
#C178F9 #F98078 #B0F978 #78F1F9
split-complementary
#C178F9 #F1F978 #78F980
monochromatic
#8A0AEC #A63DF6 #C178F9 #DCB3FC #F2E2FE

Accessibility & contrast

On white

2.87
#C178F9 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.32
#C178F9 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C178F9
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C178F9#FFFFFF#000000##000000
##C178F91.002.877.327.32
#FFFFFF2.871.0021.0021.00
#0000007.3221.001.001.00
##0000007.3221.001.001.00

Color blindness preview

Protanopia (red-blind)
#5295FD
Deuteranopia (green-blind)
#6999F6
Tritanopia (blue-blind)
#B98FAD
Achromatopsia (no color)
#989898

Design tokens & code

CSS
--color: #c178f9;
/* rgb */ color: rgb(193, 120, 249);
/* oklch */ color: oklch(70.3% 0.192 308.4);
Tailwind
colors: {
  custom: {
    50: '#d6a1fc',
    500: '#c178f9',
    950: '#000000',
  },
}
SCSS
$custom: #c178f9;
$custom-light: #d6a1fc;
$custom-dark: #000000;
JSON
{
  "hex": "#c178f9",
  "rgb": {
    "r": 193,
    "g": 120,
    "b": 249
  },
  "hsl": {
    "h": 273.953,
    "s": 91.489,
    "l": 72.353
  },
  "oklch": {
    "l": 0.70269,
    "c": 0.19211,
    "h": 308.4
  },
  "luminance": 0.3161
}

Semantic roles & 50–950 ramp

primary
#C178F9
secondary
#E3F6D5
accent
#E60064
background
#FDFAFF
surface
#FBF4FF
border
#D4CED7
text
#150F17
muted
#837F85

Preview Lab

Preview with #C178F9

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

Preview Lab → · Contrast checker → · Palette generator →

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