#C157E7#C157E7

#C157E7 is a light, highly saturated purple. Relative luminance 0.239; OKLCH L 64.8% C 0.222 H 316.0°. Best body text is #000000 at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#C157E7
RGBrgb(193, 87, 231)
HSLhsl(284, 75%, 62%)
HSVhsv(284, 62%, 91%)
CMYKcmyk(16.5%, 62.3%, 0%, 9.4%)
CIE-LABlab(56.01, 63.74, -54.88)
CIE-LCHlch(56.01, 84.11, 319.27°)
OKLaboklab(64.83% 0.1595 -0.1538)
OKLCHoklch(64.83% 0.222 316)
XYZxyz(39.8221, 23.9248, 78.1061)
Luminance0.2392 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#C157E7 #7DE757
analogous
#7957E7 #C157E7 #E757C5
triadic
#C157E7 #E7C157 #57E7C1
tetradic
#C157E7 #E77957 #7DE757 #57C5E7
square
#C157E7 #E77957 #7DE757 #57C5E7
split-complementary
#C157E7 #C5E757 #57E779
monochromatic
#8418AB #AD21DF #C157E7 #D58DEF #E9C2F6

Accessibility & contrast

On white

3.63
#C157E7 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.78
#C157E7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #C157E7
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##C157E7#FFFFFF#000000##000000
##C157E71.003.635.785.78
#FFFFFF3.631.0021.0021.00
#0000005.7821.001.001.00
##0000005.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#2480EB
Deuteranopia (green-blind)
#5789E4
Tritanopia (blue-blind)
#BF7197
Achromatopsia (no color)
#868686

Design tokens & code

CSS
--color: #c157e7;
/* rgb */ color: rgb(193, 87, 231);
/* oklch */ color: oklch(64.8% 0.222 316.0);
Tailwind
colors: {
  custom: {
    50: '#d78def',
    500: '#c157e7',
    950: '#000000',
  },
}
SCSS
$custom: #c157e7;
$custom-light: #d78def;
$custom-dark: #000000;
JSON
{
  "hex": "#c157e7",
  "rgb": {
    "r": 193,
    "g": 87,
    "b": 231
  },
  "hsl": {
    "h": 284.167,
    "s": 75,
    "l": 62.353
  },
  "oklch": {
    "l": 0.64828,
    "c": 0.22159,
    "h": 316
  },
  "luminance": 0.23923
}

Semantic roles & 50–950 ramp

primary
#C157E7
secondary
#C0E7B3
accent
#D70E43
background
#FDF8FE
surface
#FBF0FD
border
#D4CBD5
text
#150D16
muted
#837D84

Preview Lab

Preview with #C157E7

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

Preview Lab → · Contrast checker → · Palette generator →

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