#C178EB#C178EB

#C178EB is a light, vivid violet. Relative luminance 0.308; OKLCH L 69.5% C 0.177 H 311.9°. Best body text is #000000 at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#C178EB
RGBrgb(193, 120, 235)
HSLhsl(278, 74%, 70%)
HSVhsv(278, 49%, 92%)
CMYKcmyk(17.9%, 48.9%, 0%, 7.8%)
CIE-LABlab(62.31, 48.36, -47.10)
CIE-LCHlch(62.31, 67.51, 315.75°)
OKLaboklab(69.52% 0.1179 -0.1313)
OKLCHoklch(69.52% 0.177 311.9)
XYZxyz(43.7016, 30.7695, 82.2181)
Luminance0.3077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C178EB #A2EB78
analogous
#8878EB #C178EB #EB78DC
triadic
#C178EB #EBC178 #78EBC1
tetradic
#C178EB #EB8878 #A2EB78 #78DCEB
square
#C178EB #EB8878 #A2EB78 #78DCEB
split-complementary
#C178EB #DCEB78 #78EB88
monochromatic
#8C1ECB #A943E3 #C178EB #D9ADF3 #F2E3FB

Accessibility & contrast

On white

2.94
#C178EB on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

7.15
#C178EB on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #C178EB
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C178EB#FFFFFF#000000##000000
##C178EB1.002.947.157.15
#FFFFFF2.941.0021.0021.00
#0000007.1521.001.001.00
##0000007.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#5D93EF
Deuteranopia (green-blind)
#7298E8
Tritanopia (blue-blind)
#BD8AA7
Achromatopsia (no color)
#979797

Design tokens & code

CSS
--color: #c178eb;
/* rgb */ color: rgb(193, 120, 235);
/* oklch */ color: oklch(69.5% 0.177 311.9);
Tailwind
colors: {
  custom: {
    50: '#d6a1f2',
    500: '#c178eb',
    950: '#000000',
  },
}
SCSS
$custom: #c178eb;
$custom-light: #d6a1f2;
$custom-dark: #000000;
JSON
{
  "hex": "#c178eb",
  "rgb": {
    "r": 193,
    "g": 120,
    "b": 235
  },
  "hsl": {
    "h": 278.087,
    "s": 74.194,
    "l": 69.608
  },
  "oklch": {
    "l": 0.69516,
    "c": 0.17652,
    "h": 311.9
  },
  "luminance": 0.30769
}

Semantic roles & 50–950 ramp

primary
#C178EB
secondary
#DBF0CF
accent
#D60F58
background
#FDFAFE
surface
#FAF3FD
border
#D3CDD5
text
#150F17
muted
#837F85

Preview Lab

Preview with #C178EB

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

Preview Lab → · Contrast checker → · Palette generator →

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