#C178EF#C178EF

#C178EF is a light, vivid violet. Relative luminance 0.310; OKLCH L 69.7% C 0.181 H 310.8°. Best body text is #000000 at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#C178EF
RGBrgb(193, 120, 239)
HSLhsl(277, 79%, 70%)
HSVhsv(277, 50%, 94%)
CMYKcmyk(19.2%, 49.8%, 0%, 6.3%)
CIE-LABlab(62.51, 49.22, -49.01)
CIE-LCHlch(62.51, 69.46, 315.12°)
OKLaboklab(69.73% 0.1184 -0.1369)
OKLCHoklch(69.73% 0.181 310.8)
XYZxyz(44.2859, 31.0032, 85.2959)
Luminance0.3100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C178EF #A6EF78
analogous
#8578EF #C178EF #EF78E1
triadic
#C178EF #EFC178 #78EFC1
tetradic
#C178EF #EF8578 #A6EF78 #78E1EF
square
#C178EF #EF8578 #A6EF78 #78E1EF
split-complementary
#C178EF #E1EF78 #78EF85
monochromatic
#8B19D4 #A841E9 #C178EF #DAAFF5 #F2E4FC

Accessibility & contrast

On white

2.92
#C178EF on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.20
#C178EF on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C178EF
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C178EF#FFFFFF#000000##000000
##C178EF1.002.927.207.20
#FFFFFF2.921.0021.0021.00
#0000007.2021.001.001.00
##0000007.2021.001.001.00

Color blindness preview

Protanopia (red-blind)
#5A94F3
Deuteranopia (green-blind)
#7099EC
Tritanopia (blue-blind)
#BC8CA9
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #c178ef;
/* rgb */ color: rgb(193, 120, 239);
/* oklch */ color: oklch(69.7% 0.181 310.8);
Tailwind
colors: {
  custom: {
    50: '#d6a1f5',
    500: '#c178ef',
    950: '#000000',
  },
}
SCSS
$custom: #c178ef;
$custom-light: #d6a1f5;
$custom-dark: #000000;
JSON
{
  "hex": "#c178ef",
  "rgb": {
    "r": 193,
    "g": 120,
    "b": 239
  },
  "hsl": {
    "h": 276.807,
    "s": 78.808,
    "l": 70.392
  },
  "oklch": {
    "l": 0.69727,
    "c": 0.18096,
    "h": 310.8
  },
  "luminance": 0.31002
}

Semantic roles & 50–950 ramp

primary
#C178EF
secondary
#DEF2D1
accent
#DB0A5B
background
#FDFAFF
surface
#FAF3FE
border
#D3CDD6
text
#150F17
muted
#837F85

Preview Lab

Preview with #C178EF

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

Preview Lab → · Contrast checker → · Palette generator →

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