#C178EC#C178EC

#C178EC is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.6% C 0.178 H 311.6°. Best body text is #000000 at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#C178EC
RGBrgb(193, 120, 236)
HSLhsl(278, 75%, 70%)
HSVhsv(278, 49%, 93%)
CMYKcmyk(18.2%, 49.2%, 0%, 7.5%)
CIE-LABlab(62.36, 48.57, -47.58)
CIE-LCHlch(62.36, 67.99, 315.59°)
OKLaboklab(69.57% 0.118 -0.1327)
OKLCHoklch(69.57% 0.178 311.6)
XYZxyz(43.8464, 30.8274, 82.9811)
Luminance0.3083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C178EC #A3EC78
analogous
#8778EC #C178EC #EC78DD
triadic
#C178EC #ECC178 #78ECC1
tetradic
#C178EC #EC8778 #A3EC78 #78DDEC
square
#C178EC #EC8778 #A3EC78 #78DDEC
split-complementary
#C178EC #DDEC78 #78EC87
monochromatic
#8C1DCD #A842E4 #C178EC #DAAEF4 #F2E3FB

Accessibility & contrast

On white

2.93
#C178EC on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.17
#C178EC on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C178EC
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C178EC#FFFFFF#000000##000000
##C178EC1.002.937.177.17
#FFFFFF2.931.0021.0021.00
#0000007.1721.001.001.00
##0000007.1721.001.001.00

Color blindness preview

Protanopia (red-blind)
#5C93F0
Deuteranopia (green-blind)
#7198E9
Tritanopia (blue-blind)
#BC8BA7
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #c178ec;
/* rgb */ color: rgb(193, 120, 236);
/* oklch */ color: oklch(69.6% 0.178 311.6);
Tailwind
colors: {
  custom: {
    50: '#d6a1f2',
    500: '#c178ec',
    950: '#000000',
  },
}
SCSS
$custom: #c178ec;
$custom-light: #d6a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#c178ec",
  "rgb": {
    "r": 193,
    "g": 120,
    "b": 236
  },
  "hsl": {
    "h": 277.759,
    "s": 75.325,
    "l": 69.804
  },
  "oklch": {
    "l": 0.69568,
    "c": 0.17763,
    "h": 311.6
  },
  "luminance": 0.30827
}

Semantic roles & 50–950 ramp

primary
#C178EC
secondary
#DCF0D0
accent
#D70E59
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#150F17
muted
#837F85

Preview Lab

Preview with #C178EC

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

Preview Lab → · Contrast checker → · Palette generator →

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